in reply to Problem with HTTP::Request

Creating the request is not enough. You need to send it to a server too. See LWP::UserAgent. Also of interest might be WWW::Mechanize.

Replies are listed 'Best First'.
Re^2: Problem with HTTP::Request
by gjwilson21 (Acolyte) on Jul 24, 2007 at 06:55 UTC
    Since the server is throwing an error with the content, i printed the content and the content didn't contain any file. Thats why.
      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__