Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am looking for a way in bash to paste a few lines (which will be selected in a loop) to a form on a webpage at a certain location (i.e to a specific field on a page). Is this possible? Hope I've made sense

Thanks

share|improve this question
add comment

1 Answer

Check out curl (http://curl.haxx.se/docs/manpage.html). It offers numerous possibilities to access the web through the command line (including POST requests).

Also take a look at What is the cURL command-line syntax to do a POST request?

share|improve this answer
    
Alternatively you could use wget to send a POST request. –  scai May 28 '13 at 6:12
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.