in reply to Re: Problem with HTTP::Request
in thread Problem with HTTP::Request

Since the server is throwing an error with the content, i printed the content and the content didn't contain any file. Thats why.

Replies are listed 'Best First'.
Re^3: Problem with HTTP::Request
by Anonymous Monk on Jul 24, 2007 at 09:16 UTC
    Try this
    echo >test.txt perl - use HTTP::Request::Common; $a = POST qw[http://test/ Content_type form-data], content => [ qw,a b c d,, file =>['test.txt']]; die $a->as_string __END__