happy-dns-objc icon indicating copy to clipboard operation
happy-dns-objc copied to clipboard

DNS解析后Response的Set-Cookie

Open weiminghuaa opened this issue 8 years ago • 1 comments

请求某一地址:http://super.bxr.im/b/goods?anonymous=0&anonymous_id=90668dbc-1ca4-4872-b43e-1fa7489f5d19&channel_id=1&xrk_is_share=0&token=f066ff5a574f17a85d359af574c22a02&f_source=app-index-tool-2&sso_id=3205906

dns解析为:http://122.13.170.7/b/goods?anonymous=0&anonymous_id=90668dbc-1ca4-4872-b43e-1fa7489f5d19&channel_id=1&xrk_is_share=0&token=f066ff5a574f17a85d359af574c22a02&f_source=app-index-tool-2&sso_id=3205906 并设置请求头host:super.bxr.im

请求成功,但是response的Set-Cookie,貌似没保存到。

再请求:http://122.13.170.7/b/commission/3205906?t=1464576038824&ct_sso_id=3205906&ct_channel_id=1&ct_f_source=
没有前一个请求的返回cookie,导致请求失败

这个如何解决?

weiminghuaa avatar May 30 '16 02:05 weiminghuaa

这个cookie 要自己手动处理了,估计底层请求时是根据ip 找cookie的

longbai avatar May 31 '16 07:05 longbai