On Wednesday, April 24, 2002, at 08:47 , FLAHERTY, JIM-CONT wrote:

> What is the best and easiest way to pass an array to another CGI script?
> I am open for any suggestion


do you need to get an answer back?

but assuming it was where you thought it was suppose
to be - and you know what it took for either the
GET or POST Method - why not use  something like:

     use URI;
     $uri = URI->new("$the_url");

     use LWP::UserAgent;

     my $ua = LWP::UserAgent->new;
     my $req = HTTP::Request->new(POST => $the_url );
     $req->content_type('application/x-www-form-urlencoded');
         $req->content($post_string);
            my $res = $ua->request($req);

     if ($res->is_success) {
         parseTreeBack($res);
     } # else cope with the fact that it hates you

then all you have to do is 'fill in' the $post_string as
the expected 'post' type

        VAR=VALUE collection....

        my $post_string = 'ourInputStrings=';
     $post_string .= "$_ " foreach (@args) ;

that I used because I wrote the other CGI and called
the 'VAR' "ourInputStrings" - it was dopy... so sue me,
I was young, the moon was full...



ciao
drieux

---

that piece comes from the drieuxIsh Ugly Code

http://www.wetware.com/drieux/src/unix/perl/UglyCode.txt


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to