in reply to using POST in HTTP::Lite

I think that the problem was that the HDSS system isn't currently available:-). This worked:
#!/usr/bin/perl -w use strict; use HTTP::Lite; my $req; my $ncdc = new HTTP::Lite; my $format = 'NEXRAD Level II'; my $dataset = '6500'; my $radar_site = 'KOAX'; my $year = '2001'; my $email = 'deadpickle@gmail.com'; my %vars = ("stations" => $radar_site, "station_lst" => "", "typeofdata" => "RADAR", "dtypelist" => "", "begdatestring" => "", "enddatestring" => "", "begyear" => $year, "begmonth" => '01', "begday" => '01', "beghour" => "", "begmin" => "", "endyear" => $year, "endmonth" => '12', "endday" => '31', "endhour" => "", "endmin" => "", "timeselectminlist" => "", "timeselectbuffer" => "", "gvartype" => "", "outmed" => "FTP", "outpath" => "", "pri" => "500", "altdsname" => "", "altstations1" => "", "altstations2" => "", "datasetname" => $dataset, "emailadd" => $email, "directsub" => "N", "outdest" => "FILE", "applname" => "", "subqueryby" => "STATION", "tmeth" => "Awaiting-Data-Transfer", ); $ncdc->prepare_post(\%vars); $req = $ncdc->request("http://www.ngdc.noaa.gov/metadata/published +/NCDC/C00345.xml") or die "Unable to get document: $!"; print "req: $req\n"; print $ncdc->body();

Replies are listed 'Best First'.
Re^2: using POST in HTTP::Lite
by deadpickle (Pilgrim) on Jun 17, 2009 at 16:01 UTC
    HDSS is back up and running but I am still getting the error. How I see it is that request just requests a page, its not sending the post to anything. The reason I think this is because when I go to the page and pick data and click the submit button, the page moves on. But if request works the way I think it does then when you go to that url you get an error page. Is this wrong?

    UPDATE: Looking at WWW::Mechanize it seems like it may work well. I tried to install the module via CPAN shell but it is stuck on the cookie.t test. Any ideas how to get past it?