Re: Re: NSURL with a Login/Password
Re: Re: NSURL with a Login/Password
- Subject: Re: Re: NSURL with a Login/Password
- From: Romain Brestac <email@hidden>
- Date: Tue, 15 Jul 2003 23:29:58 +0200
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.
Thanks and sorry if the answer is obvious in the doc.
-----------------------------------------------------
Police partout, Culture nulle part. Paris 2003.
_______________________________________________
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.