Why do you hard code the data and then url encode it? Instead you should use the BasicKeyValuePair and a UrlEncoder Class.