title: Wordpress XML-RPC and featured images
body: <p>I'm currently developing a plugin for a client that takes an xml feed hourly and posts it into wordpress and I'm having trouble sending the featured image to the post.</p>
  
  <p>I can post to wordpress fine but all my attempts to post the featured image have failed.</p>
  
  <pre><code>&lt;?php
  class XMLRPClientWordPress
  {
  var $XMLRPCURL = "";
  var $UserName  = "";
  var $PassWord = "";
  // Constructor
  public function __construct($xmlrpcurl, $username, $password)
  {
  $this-&gt;XMLRPCURL = $xmlrpcurl;
  $this-&gt;UserName  = $username;
  $this-&gt;PassWord = $password;
  }
  function send_request($requestname, $params)
  {
  $request = xmlrpc_encode_request($requestname, $params);
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
  curl_setopt($ch, CURLOPT_URL, $this-&gt;XMLRPCURL);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_TIMEOUT, 1);
  $results = curl_exec($ch);
  curl_close($ch);
  return $results;
  }
  public function create_post( $title, $body )
  {
  $title = htmlentities( $title, ENT_NOQUOTES, 'UTF-8' );
  $content = array(
      'post_category' =&gt; array( 18 ), // my category id
      'post_type' =&gt; 'post',
      'post_title' =&gt; $title,
      'post_content' =&gt; $body,
      'featured_image_url' =&gt; 'http://www.geekologie.com/2009/02/18/scary%20clown.jpg',
  );
  
  $params = array( 0, $this-&gt;UserName, $this-&gt;PassWord, $content );
  return $this-&gt;send_request( 'wp.newPost', $params );
  }
  }
  $objXMLRPClientWordPress = new XMLRPClientWordPress("xxxx/xmlrpc.php" , "xxxxx" , "xxxx");
  $objXMLRPClientWordPress-&gt;create_post('Hey Chloe','Hope you like the clown'); 
  ?&gt;
  </code></pre>
  
  <p>Is what i currently have, i've been reading the wordpress patch tickets on this issue but can't seem to figure out how to actually use the new features</p>
  
  <p>Thanks</p>