title: How can I POST a multipart HTTP request from Perl to Java and get a response?
body: <p>I'm trying to post from one of my subroutines in Perl a request to a Java based controller.
  But I'm not getting any kind of response back. I know the Java code works file because I can get a response if I post to it from a HTML form.</p>
  
  <p>This is my Perl code:</p>
  
  <pre><code>  use HTTP::Request::Common;
    my $ua = LWP::UserAgent-&gt;new;
  
    my $response = $ua-&gt;request(POST 'http://testserver/testing.nc',
          Content_Type =&gt; 'form-data',
          Content =&gt; [
              method =&gt; 'submit',
              ftp_server =&gt; 'ftp.localhost',
              ftp_user =&gt; 'testuser',
              ftp_password =&gt; 'testpass',
              remote_path =&gt; '/home/files',
              port =&gt; 22,
              file_to_upload =&gt; ["$file"]
    ]);
  </code></pre>
  
  <p>Is there something wrong with this code?</p>