how to write a program that will submit simple web form?

supernova87a

Senior member
Dec 6, 2000
261
0
0
Hi all,

Here's my programming problem that I hope you can advise me on:

I would like to forward my email messages to my cell phone. However, I don't have an email address for the phone, only a web form I can use to send messages one at a time for free. The webpage is here if you want to take a look. It basically has two fields that you fill in, one is the phone number, the other is the text you want to send. It seems to be partly javascript based.

My question, how would I write a script that would automatically pipe messages to be submitted by http request (I'm on a unix/pine system)? I can probably figure out the forward messages to a shell script part, but what would I use to automatically submit web forms? I've heard of smarter people doing this with stupid web forms they have to submit often -- but what exactly would I do?

Thanks!
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
Perl scripting has a HTTP package, you'd use that to either POST or GET a message to the address that the web from page submits to (the < FORM action="address" > address).

I usually do this stuff in Visual C++ with winsock or wininet though, so you'll have to do some googling or hope a perl guru reads this.
 

geoff2k

Golden Member
Sep 2, 2000
1,929
0
76
My question, how would I write a script that would automatically pipe messages to be submitted by http request (I'm on a unix/pine system)? I can probably figure out the forward messages to a shell script part, but what would I use to automatically submit web forms? I've heard of smarter people doing this with stupid web forms they have to submit often -- but what exactly would I do?
How familiar are you with perl? I've written a few scripts to do this (using the Socket package not the HTTP package), but nothing specific for your particluar web form... if I send you a script, do you know enough about perl and HTTP to modify it on your own?