• 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
NSURL and login/passwords
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Collection of Cocoa & objc questions from a "newbie"
  • Next by Date: NSTimer and NSTableView
  • Previous by thread: Re: cocoa-dev digest, Vol 1 #289 - 12 msgs
  • Next by thread: NSTimer and NSTableView
  • Index(es):
    • Date
    • Thread