↧
Answer by Castaglia for How to properly send GET and CONNECT requests from...
When an HTTP client sends a GET request, the destination hostname is usuallynot in the requested URI. That is, instead of sendingGET http://www.gstatic.com/generate_204 HTTP/1.1an HTTP 1.1 client...
View ArticleHow to properly send GET and CONNECT requests from proxy to client?
I'm making an HTTP proxy in C++; when a client sends a GET or CONNECT request to the proxy, the proxy parses the HTTP header of the packet, resolve the hostname in it, opens another socket to the...
View Article