LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-14-2006, 10:21 PM   #1
dbc001
Member
 
Registered: Jan 2004
Distribution: Slackware, Ubuntu
Posts: 97

Rep: Reputation: 15
Submit web form from command line?


Hello,
I just discovered that you can send text messages via a web interface and I would like to write a script that will send me a text message on my cell phone every once in a while. Is there a command line program that can submit forms? seems like lynx or wget should be able to do this but I haven't had any luck googling for terms like "command line submit web form" - those are all pretty common terms...

thanks in advance!
dbc
 
Old 10-15-2006, 02:34 AM   #2
Blindsight
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 234

Rep: Reputation: 30
Alternatively, you could write a program (you choose the language) to telnet to the webserver and submit the syntax to send a text message. Check out:

http://www.groovyweb.uklinux.net/?pa...rough%20telnet
 
Old 10-15-2006, 03:59 AM   #3
danielftl
LQ Newbie
 
Registered: Oct 2003
Location: San Francisco
Distribution: RedHat Linux Enterprise 6
Posts: 3

Rep: Reputation: 0
Curl will do this. Visit the curl site to obtain curl.

Install curl on your server.
At the command line type:

curl -o html1.html -L "URL of web form"

Then obtain formfind.pl and do this:

perl formfind.pl < html1.html

which will display the fields of the form and what type of data is required.

Then build your curl command based on the data that you need to feed to the web form. This will be most complicated part of this and depends on a number of factors. Read the curl faqs and tutorial.

Good luck.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yast2 Security issuse form command line Andrew Sorensen SUSE / openSUSE 4 06-10-2006 05:00 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
how do I copy a whoel folder form one directory to another form the command line? zwyrbla Linux - Newbie 8 08-24-2004 06:40 PM
instant message form command line jonfa Linux - General 4 03-10-2004 09:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:58 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration