PHP curl post to login to wordpress

Posted by Sbad on Stack Overflow See other posts from Stack Overflow or by Sbad
Published on 2011-01-17T09:51:44Z Indexed on 2011/01/17 9:53 UTC
Read the original article Hit count: 192

Filed under:
|
|

I am using php curl to login to wordpress behind-the-scenes as described here: Wordpress autologin using CURL or fsockopen in PHP

However my script is not setting the cookies necessary to retain the wordpress session. Instead they are being sent back to my script and stored in cookies.txt.

Both the curl script and the wordpress login are on the same server in different directories.

Do I need to write another curl script to manually set the wordpress cookies? Is that possible?

© Stack Overflow or respective owner

Related posts about php

Related posts about Wordpress