I'am developing a plugin that will push files to a remote server via http upload. Currently I got it to work with CURL doing something like this:
$post = array("post_file"=>"@/path/FILE.EXT"); curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
Now my question is how I can achieve the same using wp_remote_host. How is the file included in the 'body' argument.
For more info see this. http://codex.wordpress.org/Function_API/wp_remote_post