Cookies-woes
Cookies-woes
- Subject: Cookies-woes
- From: Alexander Griekspoor <email@hidden>
- Date: Tue, 20 Nov 2007 14:58:59 +0000
Hi,
I'm having big trouble with NSURLDownload in combination with
cookies. All works fine on 10.4 but not on 10.5. The idea is as follows:
- a user tries to access a website through a socalled ezproxy in a
webview
- since he is not authenticated for the session he's forwarded to the
login/password page
- when he submits the password a cookie is set (at least I can see
the cookie being derived from the headers of the response)
- the ezproxy system then forwards me to the website.
So far so good. And if I try to go to a different link on that page
it works fine.
However when I try to use NSURLDownload after that to get a PDF from
the same domain I am forwarded again to the authentication page.
Somehow it seems that the download ignores the cookies that have been
set previously.
Interestingly I can reproduce the issue in safari. If I navigate on
the authenticated page and click on a PDF link the PDF will be shown
fine in Safari. However if I right click on the same link and choose
"Download linked file" it now downloads the html page where I would
have to login again.
Does anyone have a clue what's going on here? What has changed in
Leopard with respect to how NSURLDownload uses cookies? Or is there
something else I'm overlooking?
A workaround would be brilliant.
Thanks,
Alex
_______________________________________________
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