Programming Tutorials

(追記) (追記ここまで)

POST to URL from Perl Script

By: Emiley J in Perl Tutorials on 2010年09月28日 [フレーム]

This sample code in perl shows how to connect and POST data to any URL from a perl script.
#--------- 
use LWP::UserAgent; 
my $ua = new LWP::UserAgent;
my $response 
= $ua->post('https://www.samples.com/submit.cgi', 
{ param1 => 'value1', 
param2 => 'value2', 
});
my $content = $response->content; 
#---------



(追記) (追記ここまで)


Add Comment

JavaScript must be enabled for certain features to work
* Required information
1000

Comments

No comments yet. Be the first!
(追記) (追記ここまで)
(追記) (追記ここまで)

AltStyle によって変換されたページ (->オリジナル) /