Analog PHP HTTPS Cookies access solution

Source: Internet
Author: User
Analog php HTTPS cookies access
$curl = Curl_init ();
curl_setopt ($curl, Curlopt_url, ' https://218.206.191.82/ESOPWeb/ResourceManage/m400/getSpecialQuery.do?_dc= 1353327229302&libnumber=4001&categoryid=1&libstatus=&qtype=2&page=3&start=34&limit =17 ');
curl_setopt ($curl, Curlopt_cookie, ' esopuser=gzzerunagent_00; jsessionid=sdc2tdccsk5pyvrj76k2mpq1ltlqy2z9mjndpjmdbfjxfrprtqdk!-1353327229!302748 ');

curl_setopt ($curl, Curlopt_header, 1);


curl_setopt ($curl, curlopt_followlocation, true);
curl_setopt ($curl, Curlopt_returntransfer, true);

$str = curl_exec ($curl);
Curl_close ($curl);
Var_dump ($STR);


Return








Not getting the data you want, where is the problem, asking for help?
------Solution--------------------
There are jsessionid variables in the cookie data that you pass
And the session is effective, and when you get SessionID in other ways, it's actually out of date.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.