I am trying to use YFrog's API. I think I am using it correctly to try and send a HTTP POST request that is of content type XML. However, as the response body, I am always getting a 404 error for some reason. Here is their API: http://yfrog.com/upload_and_post.php
Here is my attempt of PHP code to upload.
$data = array('media' => 'http://img253.imageshack.us/my.php?image=bfab82a545d414uo.jpg', 'username' => 'asc',
'password' => 'asc', 'message' => 'hi');
$url = 'http://yfrog.com/api/uploadAndPost';
$req = new HTTPRequest($url);
$req->addHeaders(array("Content-Type" => "text/xml"));
$req->setMethod(HTTP_METH_POST);
$req->addQueryData($data); $req->send();
echo $req->getResponseBody();
Also for the media it says "Binary image data" does that mean a URL of the image location can not be passed to it? What does it mean?
Thank you for any help?