hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <http-as...@dubioso.net>
Subject Re: URL escaping
Date Thu, 15 Jun 2006 16:00:25 GMT
Hello Eugeny,

> But what if I don't know is URI escaped or not?

If you don't know it, how is HttpClient supposed to know?

Solutions ("xor", not "and"!):

1. Ask whomever it is you get the URL from for a specific format,
   either escaped or unescaped.

2. Try to unescape the URL, even if it may not be escaped.

Option 1 will give you more reliable results. Option 2 is a
best-guess approach that should work in most situations.

hope that helps,

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

View raw message