• 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: NSURL from behind firewall
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURL from behind firewall


  • Subject: Re: NSURL from behind firewall
  • From: Steve Bird <email@hidden>
  • Date: Fri, 26 Apr 2002 10:37:58 -0400

On Friday, April 26, 2002, at 07:03 AM, Gokul Hegde wrote:

Hi everybody

In one of my applications, I need to enable the proxy server support i.e.
my
application should be able to access the URLs even sitting behind a
firewall.

I was trying out using NSURL.

I find that I cannot use something

NSURL *the_pUrl = [[NSURL alloc] initWithString: @"http://www.apple.com";]
;
NSData *the_pData = [the_pUrl resourceDataUsingCache: NO];

as the local network will not find the host 'www.apple.com' and hence fail.

Now to access the URL through firewall, I will have to use the firewall
server as the host and the URL as the path. (I have done this with
applications in Java and C++ and they work fine).

But I am not able to use the 'initWithScheme:host:path:' method of NSURL.
(Which I feel is the one to be used for this situation.)


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.
References: 
 >NSURL from behind firewall (From: Gokul Hegde <email@hidden>)

  • Prev by Date: ANNOUNCE: Pantomime 1.0.3
  • Next by Date: Re: Undo - Redo?
  • Previous by thread: NSURL from behind firewall
  • Next by thread: getting result of NSAlertPanel
  • Index(es):
    • Date
    • Thread