Re: Read stream and proxies
Re: Read stream and proxies
- Subject: Re: Read stream and proxies
- From: Becky Willrich <email@hidden>
- Date: Wed, 10 May 2006 13:42:55 -0700
If the proxy is authenticating, setting the proxy is only part of the
battle - it tells the stream which proxy to use, but does not provide
the username & password. Take a look at the ImageClient sample code
at developer.apple.com for how to add authentication support; if you
have access to the DVDs of the WWDC 2005 sessions, the CFNetwork
session covered the authentication code in detail, using ImageClient
as an example.
Hope that helps,
REW
On May 10, 2006, at 4:20 AM, Trygve Inda wrote:
I have a client who is behind a proxy:
we use automatic proxy settings with a pac file and I
always have to enter my login and password in the browser for getting
the internet.
Our app uses CFNetwork and ReadStreams to pull back a file via HTTP.
I call:
CFReadStreamSetProperty (streamRef,
kCFStreamPropertyHTTPShouldAutoredirect,
kCFBooleanTrue);
proxyDict = SCDynamicStoreCopyProxies (NULL);
CFReadStreamSetProperty (streamRef, kCFStreamPropertyHTTPProxy,
proxyDict);
What else cloud I need to do?
It works fine behind open proxies w/o passowrds but I don't have a
protected
proxy to test with.
Thanks,
Trygve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden