Hello Kyama, > Is there any java class/commons libraries which can encode the url that > HttpClient accepts.
This is not a question of what HttpClient accepts. It is a question of what the relevant standards specify about URLs and paths in URLs. Moreover, it is not a question of _encoding_. Look at what you feed to the URLEncoder: http://200.12.23.21:8898/PCT/content\update\pack\multi.xml Of course it's possible to encode the backslashes in %xx style. But it's most likely not what you want. You probably want the URL to read: http://200.12.23.21:8898/PCT/content/update/pack/multi.xml So you have to transform a Windows-style path into a URL path somewhere in your application. Note: this is _not_ a URL encoding problem. It's an application specific _transformation_ between different data formats. Use java.lang.String.replace(char, char) or java.io.File.toURL() or java.io.File.toURI(). cheers, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
