开发者

Mimic browser hit from php script

开发者 https://www.devze.com 2023-03-13 18:51 出处:网络
I have a script which logs you into zencart when you open it in your browser. Now when I try to call this from inside another php script using require, header, or curl, it does not login to zencart.

I have a script which logs you into zencart when you open it in your browser.

Now when I try to call this from inside another php script using require, header, or curl, it does not login to zencart. It only works when the user opens the php script dire开发者_开发问答ctly in their browser.

I also tried virtual(), but its running the index.php script for the top level of the site, not the file I specify. Thanks.


I got this working by reading the session from the database. Let me know if anyone is interested and I will open up a github. Thanks!

0

精彩评论

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