Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I found that we can read gmail messages from a terminal window by using

curl -u user --silent ""

I would now like to submit some text (from a textarea + button press) from terminal. So what are the steps to identify the action triggered when a button is pressed and how to simulate the same actions in terminal ?

For example, I want to simulate 'pass data' & 'button press' (submit ) of

share|improve this question
The first answer here:… should do what you want. You can find the param names for the <form> in the HTML. – Jason Conti Jul 20 '13 at 18:53
@Jason Conti Thanks for the link. – totti Aug 10 '13 at 5:37
up vote 1 down vote accepted

If you need something more complex than just submitting a post request (which can easily be done by cURL directly), you may want to check Mechanize, a ruby library for interacting with web pages.

share|improve this answer
Interesting. Have a look – totti Aug 20 '13 at 9:10
A bit hard to setup in slow network, But do well – totti Oct 3 '13 at 9:16

You can use lynx:


By default lynx is not installed in Ubuntu, but you can install it with:

sudo apt-get install lynx
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.