pallvimahajan has asked for the wisdom of the Perl Monks concerning the following question:
HI Alll, I am very new to perl script, i want to transfer files from one server to another server through request POST.Kindly let me know where i am doing wrong . I want to transfer files from /tmp/Monitoring/finacleservices_a01gcbemcore1a_Core_tivoli.csv to another server in /<tp/scripts pathm/p>
but i am getting#!/usr/bin/perl use warnings; use strict; use LWP::UserAgent; my $ua = LWP::UserAgent->new; my $url = 'http://serervIp.com:7052/tmp/scripts'; file_path = '/tmp/Monitoring/finacleservices_a01gcbemcore1a_Core_tivol +i.csv'; my $req = $ua->post($url, Content_Type => 'application/text', Content => [ file => [$file_path], ], );
HTTP1.1/(404 (NOT found) Connection close
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Request POST in perl script
by haukex (Archbishop) on Feb 17, 2020 at 07:59 UTC |