Re: NSURL + proxy or firewall
Re: NSURL + proxy or firewall
- Subject: Re: NSURL + proxy or firewall
- From: Dan Wood <email@hidden>
- Date: Fri, 05 Jul 2002 10:34:12 -0700
Yep, CURLHandle will do this for you. Apparently, Jaguar will
pay attention to the proxy settings, so if you are
targetting/developing on Jaguar only, you won't need CURLHandle.
What you could do is use CURLHandle for now, but not make any
special use of it -- then when you're ready to deploy on Jaguar
only, just pull out the CURLHandle stuff let NSURLHandle deal
with your URLs.
(BTW, check out a new 1.6 version of CURLHandle in a couple of days....)
Dan
On Friday, July 5, 2002, at 04:24 AM, Steve Bird wrote:
On Friday, July 5, 2002, at 06:17 AM, Heiko wrote:
Hi,
I'm sorry if this is a FAQ. I searched the lists and the web
for this but didn't find a solution.
The Problem:
I set up a NSURL and want to retrieve the data. This works
fine as long as I don't need to use a proxy or firewall. IC
Settings are ignored by NSURL, so I guess it's just required
to setup the NSURL that it will use the proxy. If this is not
possible, where (which class) will the http-request actually
be sent? I mean, is it possible to just change the receiver of
the request to the proxy and then exchanging the relative path
with the whole URL string in the packet?
Any hints are welcome!
The Feb. 2002 issue of MacTech has a Dan Wood article on this
issue, from which I quote:
"If you have proxies configured in the system preferences,
NSURLHandle will not pay attention to those settings, and fail."
Dan wrote an ObjC wrapper called CURLHandle around an
open-source utility called CURL (included with OS X).
1... Read the article - I don't have an exact URL, but it
should be available at www.mactech.com.
2... Get the code from curlhandle.sourceforge.net
----------------------------------------------------------------
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
www.Culverson.com (toll free) 1-877-676-8175
_______________________________________________
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.
--
Dan Wood
Karelia Software, LLC
email@hidden
http://www.karelia.com/
Watson for Mac OS X:
http://www.karelia.com/watson/
_______________________________________________
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.