[
https://issues.apache.org/jira/browse/HTTPCLIENT-900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468029#comment-13468029
]
Oleg Kalnichevski commented on HTTPCLIENT-900:
----------------------------------------------
Noah
This is not a very simple change if it is to happen without breaking API
compatibility. We would need to deprecate HttpUriRequest, HttpClient,
RedirectStrategy and each and every class that touches any of those interfaces.
This is doable but requires a lot of efforts.
Probably, a more practical (or intermediate if you like it better) solution
would be changing the underlying implementation of the following method and
preserving the original request URI without trying to rewrite it.
---
HttpResponse execute(HttpHost target, HttpRequest request,
HttpContext context)
throws IOException, ClientProtocolException;
---
This would enable the client to send whatever garbage the server is prepared to
accept as a valid request URI at the price of having a few web servers choke on
requests containing absolute request URIs.
Oleg
> Don't enforce URI syntax
> ------------------------
>
> Key: HTTPCLIENT-900
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-900
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpClient
> Affects Versions: 4.0 Final
> Reporter: Marko Asplund
> Priority: Minor
> Fix For: Future
>
>
> 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:
> http://www.foo.bar/foobar?${APPL}=hetekaue
> On the otherhand HC Client doesn't allow me to send requests with invalid
> query syntax
> (HttpGet(String) constructor throws an URISyntaxException).
> It would be good if HC Client could be used also in situations like this.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]