Page 1 of 1

automatically pass user name and password in the login

Posted: Tue Dec 08, 2009 9:34 am
by qinglau
Hello All,

I am new in here, in our team, there is a Linux server, which has a command like

Code: Select all

wget -O - -c --user guest --password test "link…."
The link is our login web page.

So, the user have to fill in the username and password to login,
Image


but we want to automatically pass username and password, the user will not require to fill in the username and password and the page will login automatically.

Any helps,

Thanks.

Re: automatically pass user name and password in the login

Posted: Tue Dec 08, 2009 10:24 am
by qinglau
Hi All,

For extension the post, i think there are few solutions:

1. Probably could try to use system() for shell calls.
2. Exec() replaces the current process.
3. Or cleaner, use the PHP Curl library to do HTTP requests.

Any examples or helps

Regards,
Qing