Hi,
I need to have a PHP script executed "blindly" (that is, not by a browser, but by a simple call to the URL from a monitering service) log on an external PHP site which as far as I can tell use a standard PHP session system, and then execute a form on that site. This seems to require the following steps:
- Post the login form (only works with POST) to create session, get session ID back
- Post the other form (both POST & GET works with this one), sending the session ID as a cookie
Anyone knows how to do that in a single PHP script? The second part could be done via a simple include, except for the cookie, and for the first one I have no idea.
Any help welcomed,
Cédric