hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Mouawad <philippe.moua...@gmail.com>
Subject Re: Handling of # in redirects
Date Thu, 08 Aug 2013 11:51:46 GMT
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 ?

Thanks


On Thu, Aug 8, 2013 at 1:47 PM, Oleg Kalnichevski <olegk@apache.org> 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 <olegk@apache.org>
> 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: httpclient-users-unsubscribe@hc.apache.org
> > > For additional commands, e-mail: httpclient-users-help@hc.apache.org
> > >
> > >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>


-- 
Cordialement.
Philippe Mouawad.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message