title: WordPress wp_remote_post() sending information to Redmine REST API
body: <p>I am having a problem using WordPress's wp_remote_post() function with Redmine's REST API.
  The main issue is that when I attempt to post, i get a 403 - forbidden return.</p>
  
  <p>This is the code that i'm working with:</p>
  
  <pre><code>$info = array(
      'issue' =&gt; array(
          'key' =&gt; '59930c6460e8e71ef58b4cc95d852153bf21b510',
          'subject' =&gt; 'New bug from ' . get_bloginfo('name') . ' (' . get_bloginfo('wpurl') . ')',
          'project_id' =&gt; 10,
          'tracker_id' =&gt; 1,
          'description' =&gt; $_POST['bug_contents'],
          'custom_fields' =&gt; array(
              array(
                  'name' =&gt; 'Web Server Version',
                  'id' =&gt; 1,
                  'value' =&gt; $_SERVER['SERVER_SOFTWARE'],
              ),
              array(
                  'name' =&gt; 'PHP Version',
                  'id' =&gt; 2,
                  'value' =&gt; phpversion(),
              ),
              array(
                  'name' =&gt; 'MySQL Version',
                  'id' =&gt; 3,
                  'value' =&gt; $wpdb-&gt;get_var( "SELECT VERSION( ) as `version`" ),
              ),
              array(
                  'name' =&gt; 'WordPress Version',
                  'id' =&gt; 4,
                  'value' =&gt; $wp_version,
              ),
              array(
                  'name' =&gt; 'WordPress Admin Email',
                  'id' =&gt; 5,
                  'value' =&gt; get_bloginfo('admin_email'),
              ),
              array(
                  'name' =&gt; 'Server IP',
                  'id' =&gt; 6,
                  'value' =&gt; $_SERVER['SERVER_ADDR'],
              ),
              array(
                  'name' =&gt; 'Server External IP',
                  'id' =&gt; 7,
                  'value' =&gt; $ip_feedback_array['origin'],
              ),
          ),
      ),
  );
  
  $api_call = wp_remote_post(
      'https://ias:1q2w3e$r@rm.14all.me/issues.json',
      array(
          'method' =&gt; 'POST',
          'timeout' =&gt; 45,
          'redirection' =&gt; 5,
          'httpversion' =&gt; '1.0',
          'blocking' =&gt; true,
          'headers' =&gt; array(
              'Content-Type' =&gt; 'application/json',
              //'Authorization' =&gt; 'Basic ' . base64_encode( 'ias' . ':' . '1q2w3e$r' ),
              'X-Redmine-API-Key' =&gt; '59930c6460e8e71ef58b4cc95d852153bf21b510'
              ),
          'cookies' =&gt; array(),
          'body' =&gt; json_encode($info),
      )
  );
  </code></pre>
  
  <p>However the response that I recieve is:</p>
  
  <pre><code>Array
  (
      [headers] =&gt; Array
          (
              [server] =&gt; cloudflare-nginx
              [date] =&gt; Wed, 30 Apr 2014 15:07:58 GMT
              [content-type] =&gt; application/json; charset=utf-8
              [connection] =&gt; close
              [set-cookie] =&gt; Array
                  (
                      [0] =&gt; __cfduid=dd5dfb36ec5e73c40e7eb94ba34ab8ece1398870478439; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.14all.me; HttpOnly
                      [1] =&gt; _redmine_session=BAh7BiIPc2Vzc2lvbl9pZCIlOWU4NWRlOWRjMGNiNDczZWI2YzU1NGE2MTlkMTc4NjI%3D--2396b75554bde9fbe8a15870b0e3861687968094; path=/; HttpOnly
                      [2] =&gt; autologin=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
                  )
  
              [x-runtime] =&gt; 0.048408
              [cache-control] =&gt; no-cache
              [x-ua-compatible] =&gt; IE=Edge,chrome=1
              [x-rack-cache] =&gt; invalidate, pass
              [x-request-id] =&gt; 9dcd72c966f6434914e2b65ae706bb30
              [x-powered-by] =&gt; Phusion Passenger 4.0.10
              [status] =&gt; 403 Forbidden
              [cf-ray] =&gt; 1234a6ea3ce9014b-CDG
              [content-encoding] =&gt; gzip
          )
  
      [body] =&gt;  
      [response] =&gt; Array
          (
              [code] =&gt; 403
              [message] =&gt; Forbidden
          )
  
      [cookies] =&gt; Array
          (
              [0] =&gt; WP_Http_Cookie Object
                  (
                      [name] =&gt; __cfduid
                      [value] =&gt; dd5dfb36ec5e73c40e7eb94ba34ab8ece1398870478439
                      [expires] =&gt; 1577145000
                      [path] =&gt; /
                      [domain] =&gt; .14all.me
                      [httponly] =&gt; 
                  )
  
              [1] =&gt; WP_Http_Cookie Object
                  (
                      [name] =&gt; _redmine_session
                      [value] =&gt; BAh7BiIPc2Vzc2lvbl9pZCIlOWU4NWRlOWRjMGNiNDczZWI2YzU1NGE2MTlkMTc4NjI=--2396b75554bde9fbe8a15870b0e3861687968094
                      [expires] =&gt; 
                      [path] =&gt; /
                      [domain] =&gt; rm.14all.me
                      [httponly] =&gt; 
                  )
  
              [2] =&gt; WP_Http_Cookie Object
                  (
                      [name] =&gt; autologin
                      [value] =&gt; 
                      [expires] =&gt; 0
                      [path] =&gt; /
                      [domain] =&gt; rm.14all.me
                  )
          )
  
      [filename] =&gt; 
  )
  </code></pre>
  
  <p>I assume that there's an issue with how I'm sending the authentication parameters.</p>