Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-18-2003, 08:11 AM   #1
LQ Newbie
Registered: Apr 2003
Distribution: redhat 9
Posts: 9

Rep: Reputation: 0
shell script form submit

good day everyone..

i was wandering if anyone knows how to call a http form and / or submit values to it thru shell scripst

thanx a million

Old 05-18-2003, 09:29 AM   #2
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 587

Rep: Reputation: 32
There is no difference between submitting the form or 'usual' http site recall. I will give you some info but the rest is in your hand (you need to learn the http protocol)
Try open telnet session to a site (let's assume port 80. Next type:
GET / HTTP/1.1<enter>
You'll see a lot of response - it is what the browser gets from this site (address:
If you try:
GET /questions HTTP/1.1<enter>
it is equivalent of request for done in browser.
If you do:
GET /questions/newreply.php?s=&action=newreply HTTP/1.1<enter>
is submitting the form with 's' and 'action' "variables" filled with values.

In this way you can do what you want. But you need know the http protocol and the socket handling from shell script level (learn perl or another shell script language which allows for it)
Old 05-18-2003, 12:50 PM   #3
Registered: Aug 2002
Posts: 13,455

Rep: Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106
Like dorian33 says using a cgi bash script is no different than with with any other language. You can search the web and find lots of example scripts.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
my database export shell script run from command line but not form crontab saifee Linux - General 11 01-29-2012 10:24 AM
PHP form takes forever to submit newuser455 Programming 3 06-09-2005 05:17 AM
submit a form with javascript djgerbavore Programming 6 06-01-2005 03:46 PM
shell script works form command line but not form crontab saifee General 1 10-14-2004 11:27 AM
Authentication by Submit Form in Apache??????? ruiseixas Linux - Security 1 11-23-2003 12:02 AM

All times are GMT -5. The time now is 07:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration