1

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

How to sent such request to somesite.com:sopeport ?

Thank you

user163525
  • 31
  • 6

1 Answers1

1

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.

Community
  • 1
  • 1
Senthess
  • 17,020
  • 5
  • 23
  • 28