A
Alex
I have read many of the other threads on this topic, but none quite
seem to answer my query - any advice would therefore be greatly
appreciated.
I have a form with about 20 parameters on, one of which is a file
upload field. If i submit this form directly to the MASCOT fileserver,
it functions correctly - all parameters and their values are passed.
However, if I convert the form into a self-targetting form, capture all
the parameters and their values (using $cgi_obj->Vars(); ), and then
pass the resulting hash reference to:
my $request = POST 'http://my/url/here/prog.exe',
Content_Type => 'form-data',
Content => $param_hash_reference;
: in this case the server complains that the file did not exist or i
entered no data.
(i'm doing this so i can capture the html returned from the file-server
in a response object. I have already created the necessary UA object.)
I have read the HTTP::Request::Common docs repeatedly, and experimented
with all the methods demonstated there, but i cannot suceed in making
it work. Any pointers/suggestions as to where i'm going wrong are
therefore appreciated.
Please be assured this is a last resort, and I am not intending to
waste anyone's time.
Thanks and Regards
Alex
seem to answer my query - any advice would therefore be greatly
appreciated.
I have a form with about 20 parameters on, one of which is a file
upload field. If i submit this form directly to the MASCOT fileserver,
it functions correctly - all parameters and their values are passed.
However, if I convert the form into a self-targetting form, capture all
the parameters and their values (using $cgi_obj->Vars(); ), and then
pass the resulting hash reference to:
my $request = POST 'http://my/url/here/prog.exe',
Content_Type => 'form-data',
Content => $param_hash_reference;
: in this case the server complains that the file did not exist or i
entered no data.
(i'm doing this so i can capture the html returned from the file-server
in a response object. I have already created the necessary UA object.)
I have read the HTTP::Request::Common docs repeatedly, and experimented
with all the methods demonstated there, but i cannot suceed in making
it work. Any pointers/suggestions as to where i'm going wrong are
therefore appreciated.
Please be assured this is a last resort, and I am not intending to
waste anyone's time.
Thanks and Regards
Alex