How would I programatically submit a form using PHP (I assume using curl?) and get the file markup of the resulting page?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See here for related detail on this:
http://www.html-form-guide.com/php-form/php-form-submit.html
e.g:
1.php content:
Related Questions on SO:
https://stackoverflow.com/search?q=php+form+curl
Posting a textarea form with cURL
Using PHP & curl to post an html form that includes a file
php cURL , fill a remote form
Other articles:
http://www.askapache.com/htaccess/sending-post-form-data-with-php-curl.html
http://davidwalsh.name/execute-http-post-php-curl
http://curl.haxx.se/mail/curlphp-2004-04/0013.html
http://phpsense.com/php/submitting-forms-using-php-curl.html
http://www.maheshchari.com/submit-a-form-to-remote-server-with-php-curl/