Hi My problem in a nutshell is that I would like to encode a URL in exactly the same way as InternetExplorer does - I just can't see how to do it! In detail I have the following query: uri = "action=query&text=%28%28MRH%29%29+&&DATABASEMATCH=Deposited_Papers European_Materials&maxresults=1000&printfields=*/CONTENT-TYPE,*/UID&predict= false&totalresults=true&combine=simple"
I call: URIUtil.encodeQuery(uri, "UTF-8") Which produces the output: action=query&text=%2528%2528MRH%2529%2529+&&DATABASEMATCH=Deposited_Papers%2 0European_Materials&maxresults=1000&printfields=*/CONTENT-TYPE,*/UID&predict =false&totalresults=true&combine=simple My problem is that the '%28' characters have been re-encoded as '%2528' and this causes the Get request to fail for my purposes. InternetExplorer and FireFox don't do this (they only encode the space character). How can I get HttpClient to encode in this same way so that my query is successful. Thanks Matt
