POST to URL from Perl Script
By: Emiley J
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;
#---------
Most Viewed Articles (in Perl ) |
Latest Articles (in Perl) |
Comment on this tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Subscribe to Tutorials
Related Tutorials
Archived Comments
1. Larryhaw
View Tutorial By: Larryhaw at 2017-07-13 03:32:04