I have an external site which requires me to a. login b. post form (with 2-3 dyanamic parameters)
I need a PHP script to automate this behavior. i.e. the script should first login with a username/password and then navigate to the URL and submit the form (using dyanamic parameters)
How can I do the same using PHP?
I recommend using this class:
http://semlabs.co.uk/journal/object-oriented-curl-class-with-multi-threading
It will be something like this:
N.B. Some sites require you to download the login page first to set a cookie.
Also, you need to url_encode special chars in the post fields.