title: Best way to send content in PERL POST Request?
body: <p>I am sending a PERL <code>POST Request</code> over <code>HTTPS</code>. During sending the request i need to send two things in content one is an authorization token and other is the command need to be executed on the server side.</p>
  
  <p>What should be the approach to send these two things as the content?</p>
  
  <p>Should it be:-</p>
  
  <pre><code>$request-&gt;content($token) 
  $request-&gt;content($command)
  </code></pre>
  
  <p>OR should it be </p>
  
  <pre><code>my @content =($token,$command) 
  $request-&gt;content(\@content)
  </code></pre>
  
  <p>The module which i am using is <code>LWP::UserAgent</code> and in that i will be creating a <code>HTTP::Request</code> type object <code>my $request = HTTP::Request-&gt;new(POST =&gt; "&lt;url&gt;");</code> and in 
  this object i am sending content.</p>