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 15:29:47 GMT
Hi Eugeny,
Eugeny N Dzhurinsky wrote:
> Hi there!
> I facing some weird problems with URL encoding. For some reason this URL:
> http://www.raresplendors.com/images/Fuchsia%20Paua%20Cufflinks%20+.jpg
> Results as invalid escaped url when I trying to use it in GetMethod.
> Is there any way to force httpclient decide is URL escaped or not?

Use the no-argument constructor of GetMethod, followed by setURI:

The URI class has plenty of constructors to choose from, some of them
expect the URL to be escaped, others will do the escaping for you.

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