in reply to Query regarding HTTP:Request
Hi,
Please refer to HTTP::Request::Common. When you have files, you need to give the absolute path. so you may write like
The post(...) method of "LWP::UserAgent" exists as a shortcut for $ua->request(POST ...).$filename="$ENV{HOME}/testfile"; # File name with absolute path $req=POST 'https://www.abcd.com/fileUpload.aspx', Content_Type=>'form- +data', Content => [file1=>["$filename"],file4=>[""],file5=>[""]];
Note: Code is NOT tested
Cheers !
--VC
|
|---|