• 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
[NSData dataWithContentsOfURL:theURL]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[NSData dataWithContentsOfURL:theURL]


  • Subject: [NSData dataWithContentsOfURL:theURL]
  • From: David Blanton <email@hidden>
  • Date: Fri, 11 Apr 2003 08:52:11 -0600

In the following:

NSData * returnData = [NSData dataWithContentsOfURL:theURL];

If theURL requests a page that is not on the server returnData is NULL. Why
is it not an HTTP 404 message? If I use the same URL as theURL in a browser
I get back page not found. Is this proper behavior?

David Blanton
"Cocoa FNG"
_______________________________________________
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.

  • Follow-Ups:
    • Re: [NSData dataWithContentsOfURL:theURL]
      • From: j o a r <email@hidden>
  • Prev by Date: Re: NSData object
  • Next by Date: How to convert an NSBezierPath to an NSImage?
  • Previous by thread: Re: Finding the insertion point in a text field
  • Next by thread: Re: [NSData dataWithContentsOfURL:theURL]
  • Index(es):
    • Date
    • Thread