D
David Wake
Does anyone know of a way to control the order of file attachments
sent in a multipart POST statement? They seem to be sent in a random
order each time.
use HTTP::Request::Common;
use LWP::UserAgent;
my $ua = LWP::UserAgent->new;
my $response = $ua->request(POST 'http://www.foo.com/forminput.cgi,
Content_Type => 'form-data',
Content => [
file1 => ["/home/dwake/file1"],
file2 => ["/home/dwake/file2"],
] );
The order in which file1 and file2 are attached seems to vary each
time this script is run. I would like to always send them in the same
order if possible.
Thanks,
David
sent in a multipart POST statement? They seem to be sent in a random
order each time.
use HTTP::Request::Common;
use LWP::UserAgent;
my $ua = LWP::UserAgent->new;
my $response = $ua->request(POST 'http://www.foo.com/forminput.cgi,
Content_Type => 'form-data',
Content => [
file1 => ["/home/dwake/file1"],
file2 => ["/home/dwake/file2"],
] );
The order in which file1 and file2 are attached seems to vary each
time this script is run. I would like to always send them in the same
order if possible.
Thanks,
David