Re: NSHTTPPropertyHTTPProxy (but what about user/pass?)
Re: NSHTTPPropertyHTTPProxy (but what about user/pass?)
- Subject: Re: NSHTTPPropertyHTTPProxy (but what about user/pass?)
- From: Daniel Jalkut <email@hidden>
- Date: Tue, 22 Jul 2003 08:46:38 -0700
Hopefully somebody who knows better will chime in, but if I was in your
shoes I would try two things:
- Maybe examine other apps (like Safari?) that handle this correctly,
and see whether they are getting away with using just NSURHandle. If
they are, they are probably figuring out how to set appropriate
keys/values in the NSHTTPPropertyHTTPProxy dictionary so it gets set up
for them automatically. Copy them if you can figure it out.
- If that fails consider using CFNetwork directly, which has a routine
CFHTTPMessageAddAuthentication that should be able to take care of the
proxy auth for you.
Daniel
On Saturday, July 19, 2003, at 07:23 AM, Philip George wrote:
I see how I can set a proxy server using the new
NSHTTPPropertyHTTPProxy key
in NSURLHandle, but what if the user has "Secure Web Proxy" selected in
System Prefs? What about their login and password. My app makes
connections on the backend, so the user can't go to a special page in a
browser and fill that stuff in. It'll have to be set in my prefs
window.
But how to I tell NSURLHandle to use that name and password? There's
no
place for the user to fill that in in System Prefs, so obviously I'll
have
to set it myself. How?
I am fully aware that in 10.2, all of the blaBlaBlaWithContentsOfURL
methods
use the proxy settings from System Prefs, so please do not detour my
thread
talking about that.
The question is specifically about setting secure proxy username and
password for an NSURLHandle in 10.2.
Thanks.
- Philip
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.