Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试调试通过 AFNetworking 的 AFJSONRequestOperation 发送的 http get 请求,以查看 cookie 是否发送正确。但是,我在 http 标头中看不到任何 cookie。有高手能帮帮我吗?谢谢!:)
AFHTTPClient您可以使用以下行将cookie 设置为您的或它的子类
AFHTTPClient
[_httpClient setDefaultHeader:@"Cookie" value:@"cookie=value"];
我已经在我的服务器上尝试过这个并且它有效。它可以清楚地捕捉到 cookie 命名cookie和它是相关的value。
cookie
value