Atta Ullah wrote:
I am trying to send http request to various sites with following message

I'm assuming you sent it directly using some socket API such as provided by NSPR...


HTTP/1.0 302 Redirect
Location: http://proxy.ascertia.com.pk:4080/nohost

This is just a redirect. Clients are expected to follow it and send a new request for http://proxy.ascertia.com.pk:4080/nohost.


This is described in RFC 2616, which you can find at http://www.w3.org/Protocols/rfc2616/rfc2616.html or http://www.ietf.org/rfc/rfc2616.txt

Can anyone tell what it means and why not the sending web page.

The server decided to send a redirect instead of the data, as indicated by a 3xx response code. The Location header tells you where the data can be found.


And also what additional I have to do to create TCP socket connection
working behind proxy

If you mean an HTTP proxy, you just connect to the proxy instead of the real host, and send the request as a full URI (instead of just an absolute path). This is also described in RFC 2616.


If you mean another kind of proxy, then how to establish a connection depends on the kind of proxy ;)

with http or https.

HTTPS works by establishing an SSL/TLS connection to the server and using HTTP as normally via that connection.
_______________________________________________
Mozilla-netlib mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to