On Thu, 2013-08-08 at 13:51 +0200, Philippe Mouawad wrote: > Hello Oleg, > Thanks for answer, maybe it is just a matter of language, but if you say: > 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 > > > I understand it sends to server original URL without fragment part right ? > > I am a bit confused by "it will _not_ remove any element from it" sentence. > Do it remove fragment or not ? >
(1) This URI does not have a fragment and therefore does not need to be modified. http://en.wikipedia.org/wiki/Fragment_identifier%23Examples (2) URIs containing a fragments and / or a user info are automatically rewritten and fragments and user info elements removed. Oleg > Thanks > > > On Thu, Aug 8, 2013 at 1:47 PM, Oleg Kalnichevski <[email protected]> wrote: > > > 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] > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
