automatically pass user name and password in the login

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
qinglau
Forum Newbie
Posts: 5
Joined: Tue Dec 08, 2009 9:22 am

automatically pass user name and password in the login

Post 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.
qinglau
Forum Newbie
Posts: 5
Joined: Tue Dec 08, 2009 9:22 am

Re: automatically pass user name and password in the login

Post 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
Post Reply