Re(2): Negotiating with a Proxy server
Re(2): Negotiating with a Proxy server
- Subject: Re(2): Negotiating with a Proxy server
- From: "Peter Lovell" <email@hidden>
- Date: Thu, 6 Feb 2003 12:06:29 -0500
>
How about proxy authentication? I haven't been able to find the details
>
of exactly how the name & password should be encoded & sent (I've seen
>
both Authentication: and Proxy-Authentication: headers used and I'm not
>
sure which is correct).
hi Mike,
the unfortunate answer is that both might be required :)
"Authentication:" is for the destination web server, "Proxy-
Authentication:" is to allow you access through an intermediate proxy server.
The name and password might be sent unprotected (just encoded to make
them transparent, but without encryption etc) or with protection. In its
simplest form, a proxy-authentication fragment would look like ...
Proxy-Authorization: Basic UserPass\r\n
You create UserPass by concatenating the userID + ":" + password and then
uuencoding that string.
When you make the initial web request and get the 4xx reply, that
connection is over. You form up the request again, including the
authentication credentials, and send it on a new connection.
My experience has been that proxy servers, especially, vary enormously in
the way these things are implemented.
Regards.....Peter
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.