title: curl request not working from Jenkins
body: <p>So I'm stuck with something basic. I'm trying to trigger a Jenkins job from a remote Jenkins instance with this curl command.</p>
  
  <pre><code>curl -v -X POST https://myUsername:myAPIToken@myJenkins.com:8080/job/myJob/buildWithParameters?param=value --data token=myToken
  </code></pre>
  
  <p>This command works absolutely fine and triggers the remote Jenkins job successfully when tried from the terminal, but it gives an error <code>curl: (35) gnutls_handshake() failed: An unexpected TLS packet was received.</code> when tried through another Jenkins job on another Jenkins instance (Execute shell).</p>