Is it possible to access the proxy "manually"? && How?

Is it possible from PHP to access the proxy and not to the site through it? To ensure that the request was for a proxy address and some parameters to pass the address of the site?
June 8th 19 at 16:27
1 answer
June 8th 19 at 16:29
Are talking about HTTP proxy, then you have two choices:
1. As an HTTP proxy, where the proxy is a regular HTTP request with the only difference: the argument passed is not a relative path, like GET / HTTP/1.0, and the full URI including the Protocol

2. As CONNECT proxy, the request is made

then it reads the server's response, if the response is successful, further data sent over a connection will proxyreverse on the server port specified in CONNECT.

The second method is typically used for HTTPS, and some proxies do not allow CONNECT to ports other than 443.

Find more questions by tags Proxy