Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

curl
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

share|improve this question
2  
The first answer here: superuser.com/questions/149329/… 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
add comment

2 Answers 2

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
add comment

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
share|improve this answer
add comment

Your Answer

 
discard

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.