Re: NSURLConnection and 403 Error
Re: NSURLConnection and 403 Error
- Subject: Re: NSURLConnection and 403 Error
- From: Frederick Cheung <email@hidden>
- Date: Tue, 22 Nov 2005 12:43:24 +0000
On 11/22/05, Pascal Pochet <email@hidden> wrote:
> This just means that Safari provides the username:password
> automatically when the server requests it to access the page because
> you have already accessed this page before and you have authorized
> Safari to cache the login information (e.g. in Keychain)
> When accessing by code the same page you have to supply the login
> info too…
> (look at HTTP protocol specs or use CURLHandle.framework…)
> You may also encounter similar access problems regarding the handling
> of cookies…
When http user/password information is missing the response is usually
401. According to the rfc, 403 specifically means that adding
authorization will not help (although whether servers always comply
with this is another question). It may be the case that the server is
using a cookie based authorisation system or it is expected to see a
particular Referer header.
Fred
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden