• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Read stream and proxies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Read stream and proxies
      • From: Trygve Inda <email@hidden>
References: 
 >Read stream and proxies (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Open Transport on OS X
  • Next by Date: Re: Read stream and proxies
  • Previous by thread: Read stream and proxies
  • Next by thread: Re: Read stream and proxies
  • Index(es):
    • Date
    • Thread