开发者

Impersonating an ASP.net session with PHP

开发者 https://www.devze.com 2023-03-23 14:49 出处:网络
I\'m trying to retrieve data from a publicly accessible website that is built on ASP.net sessions. When I send standard browse开发者_StackOverflowr headers with PHP curl, I keep getting the error that

I'm trying to retrieve data from a publicly accessible website that is built on ASP.net sessions. When I send standard browse开发者_StackOverflowr headers with PHP curl, I keep getting the error that the session has expired. How can I impersonate a session with curl or some other PHP function?


curl_septopt

Using the CURLOPT_COOKIEJAR and CURLOPT_COOKIEFILE allows you to capture and re-use the site's cookies to manipulate the session. Check the doc page for more info.

0

精彩评论

暂无评论...
验证码 换一张
取 消