How can I send cookies using PHP curl in addition to CURLOPT_COOKIEFILE?

后端 未结 4 1603
花落未央
花落未央 2020-11-27 16:31

I am scraping some content from a website after a form submission. The problem is that the script is failing every now and then, say 2 times out of 5 the script fails. I am

4条回答
  •  囚心锁ツ
    2020-11-27 17:15

    I think the only cookie you need is JSESSIONID=xxx..

    Also NEVER share your cookies, becasuse someone may access your personal data that way. Specially when the cookies are session. These cookies will stop working once you logout the site.

提交回复
热议问题