I`m traying to make an upload script to blip.tv
so i`ve set up a form
<form enctype="multipart/form-data" action="http://blip.tv/file/post/" method="POST">
<input type="hidden" name="post" value="1" />
Name : <input name="title" value="test name" />
<input type="hidden" name="categories_id" value="-1" />
<input type="hidden" name="userlogin" value="uname" />
<input type="hidden" name="password" value="upass" />
<input type="hidden" name="skin" value="xmlhttprequest" />
Send this file: <input name="file" type="file" />
<input type="submit" value="Send File" />
</form>
which works fine, the file is uploaded and the browser displays the
Upload page
The thing is that i don`t want to be redirected there so i added an iframe and sent there the response. So far so good.
The response is in XML , in this form
Quote:
<otterresponses>
<response>
Your file called Foobar has been successfully posted.
<post_url>
hxxp://blip.tv/file/32471
</post_url>
</response>
</otterresponses>
|
I have absolutely no idea how to handle this. I`m confused a little by the fact that it is a response of a form. I know how to parse a simple xml file but in this case it seems to be a little different story.
Any help ?
And merry Christmas everyone