title: Error ORA-29259: end-of-input reached calling utl_http.begin_request
body: <p>I'm trying to connect to the Royal Mail SOAP API but can't get past the the begin request stage.</p>
  
  <p>Certificates have been added to the wallet, it works fine for DPD and other Web APIs.</p>
  
  <pre><code>DECLARE
      wk_http_request utl_http.req;
  BEGIN
      utl_http.set_wallet('file:/app/oracle/admin/A11/wallet', NULL);
      wk_http_request := utl_http.begin_request('https://api.royalmail.net/shipping/v2', 'POST', utl_http.http_version_1_1);
  END;
  /  
  </code></pre>
  
  <p>Gives Error:</p>
  
  <pre><code>ORA-29259: end-of-input reached
  ORA-06512: at "SYS.UTL_HTTP", line 1128
  ORA-06512: at line 5
  29259. 00000 -  "end-of-input reached"
  *Cause:    The end of the input was reached.
  *Action:   If the end of the input is reached prematurely, check if the input
             source terminates prematurely.  Otherwise, close the connection
             to the input.
  </code></pre>
  
  <p>I get the same whether I include the set wallet line or not.</p>
  
  <p>This runs without error:</p>
  
  <pre><code>DECLARE
      wk_http_request utl_http.req;
  BEGIN
      utl_http.set_wallet('file:/app/oracle/admin/A11/wallet', NULL);
      wk_http_request := utl_http.begin_request('https://api.dpd.co.uk', 'POST', utl_http.http_version_1_1);
  END;
  /
  </code></pre>
  
  <p>Can anyone connect to the Royal Mail API via Oracle PL/SQL?
  Our version is 11.2.0.3.0.</p>