• 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
URL and Proxy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

URL and Proxy


  • Subject: URL and Proxy
  • From: "email@hidden" <email@hidden>
  • Date: Thu, 6 May 2004 09:42:01 +0200

Hi all

In my app I am loading an XML page from the web. This is done by

- (id) initFromXML: (NSURL*) url {
self = [super init];
NSXMLParser *parser = [[NSXMLParser alloc] initWithContentsOfURL: url];
.
.
.
}

This worked quite well, but yesterday I tried to use my app behind a proxy server and there nothing works. Now my question: how can I expand this code to use a given proxy server. Preferably the proxy server is fetched from the system default.

I have seen that there is NSURLProtectionSpace in which the proxy can be specified, but I didn't see how to put things together.

Thanks in advance

Roman
_______________________________________________
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: 
 >Saving Web Content (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Saving Web Content (From: Pierre Bernard <email@hidden>)

  • Prev by Date: Re: Saving Web Content
  • Next by Date: Re: Array operators (was: Custom canRemove binding)
  • Previous by thread: Re: Saving Web Content
  • Next by thread: Re: Saving Web Content
  • Index(es):
    • Date
    • Thread