>Hello,
>Would anyone know of a way to post something via commandline to a
>remote CGI script? I want to have something automaitcally sent to my
>cell phone via an online messaging center.. Thanks..

It boils down into telnetting to (probably) port 80 on a remote site, and
squirting a carefully crafted string of bytes at the right moment and then
noting the result that the server sends back (Ok, failure).

Install the libwww package for perl from your local CPAN archive. The LWP
module will take care of all the nitty gritty for you.

You will have to read the source of the remote HTML page carefully to make
sure you supply sensible values for all of the fields it specifies in the
form.

Firstly, though, I would test this thoroughly on your local Apache, so as
not to bombard the remote site with poorly formed requests. For instance, I
would copy the page and install it locally, and hook it up to a simple
cgi-bin script that dumps the contents of its QUERY_STRING to the page.

Sounds like a fun project. Let us know how it goes.

DL
--      affairs and are crunchy Do for good in ketchup.
        meddle not of the taste with wizards, you



-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to