hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yan Cheng Cheok <ycch...@yahoo.com>
Subject Is HttpClient suitable for the following task?
Date Thu, 24 Sep 2009 18:00:55 GMT
I try to talk to a server, by telneting to it, and send the following command through telnet
terminal :

POST /%5bvUpJYKw4QvGRMBmhATUxRwv4JrU9aDnwNEuangVyy6OuHxi2YiY=%5dImage? HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 164


This works very fine. Now, I wish I can use HttpClient, to talk to the server, as I use telnet
to talk to the server. The reason I wish to use HttpClient, instead of using raw TCP socket,
is because HttpClient does support NTLM.

However, when I use POST method with NameValuePair :

new NameValuePair("[SORT]", "0,1,0,10,5,0,KL,0")

The request will become URL encoded. The server doesn't understand URL encoded request.

%5BSORT%5D: 0%2C1%2C0%2C10%2C5%2C0%2CKL%2C0

Is there any way I can avoid this?

Thanks and Regards
Yan Cheng Cheok


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

View raw message