开发者

curl multiple requests cookie issue

开发者 https://www.devze.com 2022-12-26 20:50 出处:网络
I\'m using curl multi API for multiple curl requests. first I\'m using a single request to login to a site and save the cookie file.

I'm using curl multi API for multiple curl requests.

first I'm using a single request to login to a site and save the cookie file. then I'm using the curl mult开发者_Python百科i API to get some data from that site.

The problem I'm facing is that from some reason the cookie file does not get read and I'm redirecting to the main login page.

I must say that this work once in awhile so I can't point what went wrong.

Any help would be much appreciated.

Thanks


try php pear HTTP_REQUEST

and store the cookie data, the functions setCookies and getCookies are your friends.

0

精彩评论

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