• 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: NSURLConnection vs WebKit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLConnection vs WebKit


  • Subject: Re: NSURLConnection vs WebKit
  • From: "Christina Zeeh" <email@hidden>
  • Date: Thu, 8 Feb 2007 15:26:09 +0100

On 2/7/07, Jesus De Meyer <email@hidden> wrote:
I think so, I have implemented most of the delegate methods from
NSURLConnection and when trying the del.icio.us/rss/ feed I do not
get a redirect reponse. Instead the data I get is an html page
containing the standard 404 code.

Do I need to do something extra?

del.icio.us sometimes blocks "generic" user agents in order get rid of misbehaving clients. You must set your own user agent for your application like this:

NSMutableURLRequest *theRequest = [NSMutableURLRequest
requestWithURL:theURL cachePolicy:NSURLRequestReloadIgnoringCacheData
timeoutInterval:60.0];
[theRequest setValue:@"MyVeryFancyApp/0.1" forHTTPHeaderField:@"User-Agent"];

See http://del.icio.us/help/api/ for instructions on what not to do
when developing a client :)

Regards,
  Christina

--
"I smile because I have no idea what's going on."
http://www.tuxtina.de
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >NSURLConnection vs WebKit (From: Jesus De Meyer <email@hidden>)
 >Re: NSURLConnection vs WebKit (From: Mike Abdullah <email@hidden>)
 >Re: NSURLConnection vs WebKit (From: Jesus De Meyer <email@hidden>)
 >Re: NSURLConnection vs WebKit (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: Re: NSDatePicker - can it be empty/blank?
  • Next by Date: Bindings: enabled
  • Previous by thread: Re: NSURLConnection vs WebKit
  • Next by thread: Composition Differences on Intel and PPC (Copy from quartz-dev)
  • Index(es):
    • Date
    • Thread