The NameValuePair class exists also in 4.1. but i don't see any possibility to set query parameters as NameValuePairs. It exists only URLEncodedUtils#parse(URI,String) to parse query parameters from an existing URI ...