lisaw has asked for the wisdom of the Perl Monks concerning the following question:
Here's the program that I'm trying to transfer the data into, and the part that I can't figure out:http://www.domain.com/bin/sendnotice.cgi?category=ArtsArt&email=me@me. +com&password=369728 Data trying to transfer into cgi: catgory email password
Any help would be greatly apprecieted. Lisaread(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); @pairs = split(/&/, $buffer); foreach $pair (@pairs) { ($name, $value) = split(/=/, $pair); $value =~ tr/+/ /; $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $value =~ s/\n/ /g; $request{$name} = $value; } $url = "http://www.domain.com"; $refer = "http://www.domain.com"; $maillocation = "/usr/sbin/sendmail"; $stmail="$request{'category'}" ; $tmail="$request{'email'}" ; $tnmail="$request{'password'}" ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pulling Data From A Command Line
by zigdon (Deacon) on Oct 15, 2002 at 16:00 UTC | |
by Aristotle (Chancellor) on Oct 16, 2002 at 13:16 UTC | |
|
Re: Pulling Data From A Command Line
by rdfield (Priest) on Oct 15, 2002 at 15:59 UTC |