NSURL and login/passwords
NSURL and login/passwords
- Subject: NSURL and login/passwords
- From: Louis Demers <email@hidden>
- Date: Mon, 16 Jul 2001 23:58:07 -0400
Hi,
I'm trying to write a small cocoa application which access files on
an http server in a password protected region. I use NSURL with an
url in the form of
http://login:password@somewebsite/somefile.someextension
NSURL responds correctly to the "user" and "password" messages
indicating it parsed the url correctly. However when I use the NSURL
with NSData to get the data, [theData initWithContentsOfURL:anURL]
returns null. If I specify files not protected by the login/password,
it works correctly.
Any suggestions ? I'm stumped.
--
Louis Demers ing.
2447 Bellevue
St-Romuald, Quebec
Canada G6W 2T8
email@hidden
email@hidden