supporting file upload from perl client script
Hello all,
I want to upload a log file from a perl script to a file on the server using
post and multipart request.
I have the file upload working when the form is triggered from an html page, but I am having problems when creating the request from the perl script.
(I am not a perl guru, so sorry if this is a stupid user perl problem).
I can process the perl script generated HTTP request from a servlet using the commons mult-part file handling without spring.
How do I do this with spring?
HTML approach:
1) create fileUpload.html that contains a form, submit action is: upload.form
Perl Client Approach:
my $req = POST $URL_submit, Content_Type => 'multipart/form-data',
Content => [ FirstName => 'Foo',
LastName => 'Bar',
filename => [ $cov_file ]
];
my $res = $ua->request($req) or die "request: $!";
Stupid Questions:
1) From perl, do I Post to the same upload.form that I post the HTML?
2) Do I have to do anything special in the Spring setup
The greatest performance improvement is the transition from a non-working state to the working state...