Hello,

I am using apache httpclient 4.2.3 in a project. I need to use httpclient
to interact an app that has URIs in with multiple leading slash characters.
For example, "///cnp/kdh/lib/cnp.html"

The browser could handle such URIs correctly by sending all the leading
slash characters in the request. However, using httpclient (more
specifically using DefaultHttpClient class), only single leading slash
character is sent. That is, it only sent out "/cnp/kdh/lib/cnp.html" to the
server which results a 404 response instead of a 200 response.

Is there any way to request a URI with multiple leading slash characters? I
searched the email archive and found a Jun 30, 2011 Oleg's comment, but my
issue is different.

Thanks for your help in advance!

Nick

Reply via email to