How to directly use an http proxy server?

I usually, PHP e curl function curl_setopt set proxy server, which looks like a line where it says Protocol, ip address and port (if needed) proxy server and everything works. How to manually pass the proxy request to the server? It is not clear how the http proxy accepts the request, using the headers? Because using the http methods GET and POST anything he does not accept. As a normal proxy server to submit the url that he requested and gave the contents?
September 19th 19 at 13:06
1 answer
September 19th 19 at 13:08
Solution
How to manually pass the proxy request to the server?
Manually is what?
it manually using same curl only from the console or via the browser or php without using curl - selena.Kreiger81 commented on September 19th 19 at 13:11
is curl in the console goes through a proxy, if you set the environment variable http_proxy
the browser goes through a proxy, if you specify the proxy in the settings (browser or system)
php itself doesn't go anywhere, something must be used as the vehicle and properly configured - sean_Hilll commented on September 19th 19 at 13:14
in General a vicious circle, then specify the address in the appropriate place even programmers don't know)) how is the communication between the client and the http proxy and as he passed the parameters it's probably universal mystery) - selena.Kreiger81 commented on September 19th 19 at 13:17
: nope no secrets, what question such answer.
directly with a proxy can only work if you are working with a network directly, without intermediaries. but the example that you lead and could not. - sean_Hilll commented on September 19th 19 at 13:20
of course, all interaction occurs on the lower protocols of the OSI model. I was trying to find out how they work more transparent at the http level. Thank you. - selena.Kreiger81 commented on September 19th 19 at 13:23

Find more questions by tags Computer networksProxy