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: http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/HttpMethodBase.html#setURI(org.apache.commons.httpclient.URI) 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, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
