hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thom Nichols <tmnich...@gmail.com>
Subject Re: Fluent HttpClient
Date Tue, 07 Jun 2011 16:31:24 GMT
There's only one URL encoding scheme.
http://en.wikipedia.org/wiki/Percent-encoding

On Tue, Jun 7, 2011 at 11:43 AM, Lilu Xu <cookieme@gmail.com> wrote:

> Thanks for the comments.
> Currently, the builder assumes values are already encoded. I think it is a
> good idea to have a switcher to control the URL encoding. But do I also need
> to allow users to specify which encoding scheme should be used?
>
> Lilu
>
> On Jun 7, 2011, at 6:31 PM, Thom Nichols wrote:
>
> > Are values URL-encoded by the builder or are they assumed to already be
> > encoded?  You should allow the ability to do both, either by duplicate
> > methods like `setPathEscaped` or some funky switching like
> >
> > builder
> >  .escaped()
> >  .setPath("monty%20python")
> >  .unescaped()
> >  .addParameter("q","what is your name?")
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>
>

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