I need to send GET request to proxy, with custom headers and then read response?
ex:
GET http://www.google.com/ HTTP/1.1 Accept-Language: en-US
User-Agent: Mozilla/4.0
Accept-Encoding: gzip, deflate
Host: www.google.com
Connection: Keep-Alive
Some-field: sdasdas
H开发者_运维技巧ow to sent such request to somesite.com:sopeport ?
Thank you
This is exactly what you need and check this for sample usage. I know that the last one's for J2SE, but they should support the same interface.
精彩评论