On Thu, 2013-08-08 at 13:35 +0200, Philippe Mouawad wrote: > Hello Oleg, > Maybe my question was not cear. > > I was saying that using this URL in a Sampler: > > - GET http://en.wikipedia.org/wiki/Fragment_identifier%23Examples > > The URL called would be: > > - GET http://en.wikipedia.org/wiki/Fragment_identifier > > HC removes chars after # >
If HC gets http://en.wikipedia.org/wiki/Fragment_identifier%23Examples as a request URI or a redirect location it will _not_ remove any element from it. It will remove URI fragment if present prior to sending it to the origin server http://en.wikipedia.org/wiki/Fragment_identifier%23Examples -> http://en.wikipedia.org/wiki/Fragment_identifier%23Examples http://en.wikipedia.org/wiki/Fragment_identifier#Examples -> http://en.wikipedia.org/wiki/Fragment_identifier Oleg > > Regards > > Philippe > > On Thu, Aug 8, 2013 at 12:59 PM, Oleg Kalnichevski <[email protected]> wrote: > > > On Thu, 2013-08-08 at 11:35 +0200, Philippe Mouawad wrote: > > > Hello, > > > > > > I submitted a while ago a bug on fragment handling in URLs: > > > > > > - https://issues.apache.org/jira/browse/HTTPCLIENT-1286 > > > > > > > > > As a summary HTTPClient handles it by stripping it from URLs even if it's > > > encoded like this: > > > http://en.wikipedia.org/wiki/Fragment_identifier%23Examples. > > > > > > > I do not think it does so: > > > > > > http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/client/utils/TestURIUtils.java?view=diff&r1=1511688&r2=1511689&pathrev=1511689 > > > > Oleg > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
