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

curl -u user --silent "https://mail.google.com/mail/feed/atom"

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 http://tokira.net/unicode/index.php


2 Answers 2


You can use lynx:

lynx http://tokira.net/unicode/index.php

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

sudo apt-get install lynx

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.

  • Interesting. Have a look
    – totti
    Aug 20, 2013 at 9:10
  • A bit hard to setup in slow network, But do well
    – totti
    Oct 3, 2013 at 9:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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