HTTP request through a proxy server

Started by
1 comment, last by Toolmaker 20 years, 6 months ago
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:
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.   

Advertisement
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 
Gotta try that tomorrow since I don''t have a proxy server here.

Toolmaker


-Earth is 98% full. Please delete anybody you can.

This topic is closed to new replies.

Advertisement