Home > Uncategorized > Submit a html form from command line using Lynx post method

Submit a html form from command line using Lynx post method

We can use the lynx command to automatically submit html forms from linux command line. In the html form I choose(https://secure.indeed.com/account/forgotpassword), there was only two input fields named “email” and the “submit”. The following commands can be used for this purpose.

# msg="email=enldpr@gmail.com&submit=Submit\n---\n"
# url="https://secure.indeed.com/account/forgotpassword"
# echo -e ${msg}|lynx -useragent="Firefox" ${url} -post_data
Ignored 1 characters from standard input.
Use "-stdin" or "-" to tell how to handle piped input.
Warning: User-Agent string does not contain "Lynx" or "L_y_n_x"!

[1]sign in

[2]one search. all jobs. Indeed

Forgot Your Password?

We sent instructions for resetting your password to enldpr@gmail.com.

[3]About - Questions? [4]Contact us

©2011 Indeed


1. https://secure.indeed.com/account/login?hl=en
2. http://www.indeed.com/
3. http://www.indeed.com/intl/en/about.html
4. http://www.indeed.com/support

This security loop hole can be exploited by spammers and can be prevented by using captcha.

Categories: Uncategorized
  1. annmariecarranza
    June 15, 2013 at 10:44 pm

    Hurrah! In the end I got a web site from where
    I can truly get helpful information concerning my study and

  2. Tracies Wanson
    June 19, 2013 at 9:21 am

    You actually make it seem really easy along with your presentation but I find this matter
    to be actually one thing which I feel I’d by no means understand. It seems too complicated and very broad for me. I’m having a look ahead in your subsequent put up, I’ll attempt to get the dangle of it!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: