[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] LWP




On Oct 2, 2006, at 2:56 PM, Hefling, Chris wrote:

    $req = HTTP::Request->new(GET => 'https://www.blahblah.com');

$req = POST $url, ['command' => 'fileget', 'ifilename' => $files1[0], 'xfilename' => $files1[1]];

    $req->content_type('application/x-www-form-urlencoded');

    $res = $ua->request($req);

    $content=$res->content;

     print FILE $res->content;


Can we see the entire program? Do you have warnings and strict on at the top?

use strict;
use warnings;

If not, do that first, and try it again.

--
Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance