what I’m trying to figure out if php’s curl function is eligible to get in a password protected page, of course with given credentials, and curl a specified 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.
Sure, see this sample code :
(From http://www.electrictoolbox.com/php-curl-form-post/)
The fields names should be edited to suit your needs, see the output of
(install
mech-dumpif needed)