http://qs1969.pair.com?node_id=457125

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I want to set the $content values in a request but I am not successfull.
$r = HTTP::Request->new( $method, $uri, $header, $content )> Method and uri are alright. Header optional. But I have to set the content to other values than the standard ones.
my $userAgent = LWP::UserAgent->new(); my $request = HTTP::Request->new(POST => 'http://genome.ucsc.edu/cgi-b +in/hgBlat?command=start', [ org => "D. majovensis", userSeq => "$alignmentQuery", submit => "submit", ] ); my $response = $userAgent->request($request); if($response->is_success) { open(FILE, "> $_.html") or die $!; print FILE $response->content; close FILE; }
This is the code ... but I never get anything else than the standard page. Where is my fault. I know that maybe my §content values are incorect and so not taken by the javascript... Or is it anything else? That underlined thing should be in rectangular brackets. (Dont blame on me.. just help a poor man :) Thank you.