• 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 with a Login/Password
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURL with a Login/Password


  • Subject: Re: NSURL with a Login/Password
  • From: Scott Anguish <email@hidden>
  • Date: Tue, 15 Jul 2003 18:08:09 -0400

On Tuesday, July 15, 2003, at 5:29 PM, Romain Brestac wrote:

sure, you can use NSURLConnection's +sendSynchronousRequest:returningResponse:error: method. If the URL password is incorrect, you'll get nothing back.

that method blocks BTW.. if you need other behaviour, you'll need to use other NSURLConnection methods...


On Monday, July 14, 2003, at 4:17 PM, Romain Brestac wrote:

Hello list,

I tried to get the contents of an url with the method "stringWithContentsOfURL:" but it does not work when the page is protected with a password like in "http://login:password@...";

Is there a way to do this with the new webkit/foundation classes ?
Thanks. Romain.

Thank you Scott.
My problem is that I am using Applescript studio with the call method command to communicate with cocoa. One of the main limitation is that I cannot use delegates methods. Can you just tell me if I must use one of the delegate methods of NSURLConnection to get the data after creating a synchronous connection or if I can get it directly.


sendSynchronous... does not require any delegate methods.. it returns the data directly..
_______________________________________________
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: 
 >Re: Re: NSURL with a Login/Password (From: Romain Brestac <email@hidden>)

  • Prev by Date: Re: DockIcon with text
  • Next by Date: Re: System serial number
  • Previous by thread: Re: Re: NSURL with a Login/Password
  • Next by thread: NSTextAttachment Problem
  • Index(es):
    • Date
    • Thread