• 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
Re: Why does this https post request always return "404 Not Found"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does this https post request always return "404 Not Found"


  • Subject: Re: Why does this https post request always return "404 Not Found"
  • From: Jens Alfke <email@hidden>
  • Date: Sat, 21 Jun 2008 15:32:24 -0700

This is pretty weird. After some experimenting, I narrowed it down to the value of the User-Agent header. I think the del.icio.us server is checking that header and returning a 404 if it doesn't like it. And it doesn't seem to like CFNetwork's default user-agent header, though it likes Safari and curl.

You can programmatically set the "User-Agent" header value to "Mozilla/ 5.0 (Macintosh; U; Intel Mac OS X 10_5_3; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.1 Safari/525.20" and the result should work.

On the other hand, why are you trying to log into del.icio.us using forms and cookies as though you were a web browser? That site already has a pretty comprehensive API for applications to access it; you should use that instead. (That may in fact be what they're trying to tell you by blocking your request.)

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Why does this https post request always return "404 Not Found"
      • From: an0 <email@hidden>
References: 
 >Why does this https post request always return "404 Not Found" (From: an0 <email@hidden>)

  • Prev by Date: Re: CoreData local and on server sync
  • Next by Date: How to hide the divider in a collapsed NSSplitView pane
  • Previous by thread: Why does this https post request always return "404 Not Found"
  • Next by thread: Re: Why does this https post request always return "404 Not Found"
  • Index(es):
    • Date
    • Thread