Managing HTTP Cookies on iPhone

前端 未结 3 1044
一整个雨季
一整个雨季 2020-11-28 20:00

I want to port a python app that uses mechanize for the iPhone. This app needs to login to a webpage and using the site cookie to go to other pages on that site to get some

3条回答
  •  一向
    一向 (楼主)
    2020-11-28 20:08

    @zonble's answer only works in my localhost; If the server is not running locally, the "Set-Cookie" header is missing from the NSDictionary *fields = [HTTPResponse allHeaderFields];

    Finally I found @benzado's solution works fine. Also see: iphone nsurlconnection read cookies @Tal Bereznitskey's answer.

提交回复
热议问题