PHP, cURL post to login to WordPress

后端 未结 5 1542
北海茫月
北海茫月 2020-11-30 05:24

I am working on a project for a client which needs an automatic login from a link click.

I\'m using a handshake page to do this with the following code:



        
5条回答
  •  执念已碎
    2020-11-30 05:31

    If your script doesn't perform all the functions you need in a single execution, you may need to parse out the cookie values, store them in a file, and then resend on the next execution. Check out the CURLOPT_COOKIEFILE option.

提交回复
热议问题