http GET/POST request through proxy
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
Sir, my computer is running under the proxy server. I want to developed application which is able to make http GET and POST request to a specified server. C.R.Naik
-
Send GET/POST as usually, instead that you will connect your socket to proxy server instead of HTTP server. Headers will remail the same, in simple case (no proxy authorization ...)
rrrado
good behavior is also to send the complete url of the request, which is not necessary when using direct connection. Instead of
GET /index.htm HTTP/1.1 Header: Value
which is allowed for direct connecting, you should use the full syntax:GET http://www.codeguru.com/index.htm HTTP/1.1 Header: Value
from this the proxy will be able to know, where you want to connect ;)