You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Gustavo Hexsel <gh...@sagebrushcorp.com> on 2004/11/25 19:22:15 UTC

Confusion with encodings - to encode or not to encode? It's like information age Hamlet...

  Hi,

  I'm having some trouble grasping the new encoding methods (new as in
3.0a1).  I'm not sure when things should get encoded or not, and where they
should be decoded again.  

  For instance:
- when I parse the "location" header for redirects, should I encode it?  

- when I parse a relative URL from a page and merge it with the current
address, I'm using the constructor HttpURL(HttpURL base, String relative).
However, it does not generate the correct encoding (I filed a bug on it, but
now I'm not sure I'm using the API correctly).

  []s Gustavo

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org