I am writing a programme which dowloads a html file from the internet. I have a fair knowledge of socket programming. I wanted to know how do i do this through a proxy server in between?
I am writing a programme which dowloads a html file from the internet. I have a fair knowledge of socket programming. I wanted to know how do i do this through a proxy server in between?
You must establish a socket connection to the proxy server and request that it connect to the external server for you. This request is part of the HTTP protocol. See RFC 2616 of the HTTP specification for more details.
If it's a HTTP proxy then:Originally posted by shiju
I am writing a programme which dowloads a html file from the internet. I have a fair knowledge of socket programming. I wanted to know how do i do this through a proxy server in between?
Code:GET http://url.com/url/ HTTP/1.1