Re: NSURLConnection vs WebKit
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