Re: HTTPS streams through a proxy
Re: HTTPS streams through a proxy
- Subject: Re: HTTPS streams through a proxy
- From: Allan Nathanson <email@hidden>
- Date: Fri, 14 May 2004 13:38:36 -0400
On May 14, 2004, at 12:24 PM, Becky Willrich wrote:
In the end though we may have different settings for both HTTP and
HTTPS,
Can I guess that I can put 4 keys/values instead of 2, and put the
kCFStreamPropertyHTTPProxyHost/port as well?
Yes; that's correct.
Also, by doing so, am I sure that it will absolutely use the proxy,
isn't there another property to change, like ProxyEnabled or
something?
The dictionary from SystemConfiguration includes enabled keys, so
CFNetwork looks for them. If they are present, CFNetwork respects
their values (so set them to kCFBooleanTrue). However, if they are
absent, CFNetwork assumes you want the proxy enabled. So either leave
them out altogether, or make sure they are set to true. If you're
constructing the entire dictionary by hand, I would just leave them
out altogether.
Actually, I would have suggested that the enabled key always be
included. Otherwise, the behavior of any code which used the proxy
dictionary would be unknown (some may choose to assume "yes", others
"no").
- Allan
_______________________________________________
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.