strcpy(buff, "CONNECT toolmaker.homeip.net:80 HTTP/1.0 \r\nGET /index.html HTTP/1.0\r\n\r\n");
send(s, buff, strlen(buff), 0);
What is wrong with this?
Toolmaker </pre>
<HR width=25% align="left">
-Earth is 98% full. Please delete anybody you can.
HTTP request through a proxy server
I am currently developing a simple application which tunnels through a Novell BorderManager proxy server. However, it returns a 400: Bad Request page.
As a simple test I decided to request the index.html on my own webserver. This is the request I send to the proxy server:
Try leaving out the connect part and sending the full path to the proxy...
GET http://toolmaker.homeip.net:80/index.html HTTP/1.0Host: toolmaker.homeip.net:80
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement