$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=>[""]];