Re: NSURL with a Login/Password
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.