hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Asplund Marko <marko.aspl...@ixonos.com>
Subject URL encoding issues: HC Client throws URISyntaxException
Date Wed, 09 Dec 2009 20:19:50 GMT

I'm trying to use HttpComponents Client for fetching data from a web site.
I've ran into problems that seem to be related with the way the
request URL query parameters are handled on the server side.
The service doesn't encode unsafe characters (e.g. '{' and '}') in response URLs.
Also when these characters are encoded on the client prior to issuing the request
the service gives incorrect responses.

The URLs are of the following form:


On the otherhand HC Client doesn't allow me to send requests with invalid query syntax
(HttpGet(String) constructor throws an URISyntaxException).

What would be the best way to workaround the issue?

HttpURLConnection doesn't have this problem but I'd rather use HC Client if possible.


To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org

View raw message