LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-18-2003, 07:11 AM   #1
precioso77
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

cheers
 
Old 05-18-2003, 08:29 AM   #2
dorian33
Member
 
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 www.linuxquestions.org) port 80. Next type:
GET / HTTP/1.1<enter>
<enter>
You'll see a lot of response - it is what the browser gets from this site (address: www.linuxquestions.org)
If you try:
GET /questions HTTP/1.1<enter>
<enter>
it is equivalent of request for www.linuxquestions.org/question done in browser.
If you do:
GET /questions/newreply.php?s=&action=newreply HTTP/1.1<enter>
<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, 11:50 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,923

Rep: Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747
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.

http://bashlib.sourceforge.net/
 
  


Reply


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 09:24 AM
PHP form takes forever to submit newuser455 Programming 3 06-09-2005 04:17 AM
submit a form with javascript djgerbavore Programming 6 06-01-2005 02:46 PM
shell script works form command line but not form crontab saifee General 1 10-14-2004 10:27 AM
Authentication by Submit Form in Apache??????? ruiseixas Linux - Security 1 11-22-2003 11:02 PM


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

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