By
youmay
Подскажите, как в PHP послать curl`ом следущий запрос:
POST /feeds/api/users/default/uploads HTTP/1.1Host: uploads.gdata.youtube.comAuthorization: AuthSub token="DXAA...sdb8"GData-Version: 2X-GData-Client: b1c4t9sl2159X-GData-Key: key=adf15ee97731bca89da876c...a8dcSlug: video-test.mp4Content-Type: multipart/related; boundary="f93dcbA3"Content-Length: 1941255Connection: close--f93dcbA3Content-Type: application/atom+xml; charset=UTF-8<?xml version="1.0"?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:yt="http://gdata.youtube.com/schemas/2007"> <media:group> <media:title type="plain">Bad Wedding Toast</media:title> <media:description type="plain"> I gave a bad toast at my friend's wedding. </media:description> <media:category scheme="http://gdata.youtube.com/schemas/2007/categories.cat">People </media:category> <media:keywords>toast, wedding</media:keywords> </media:group></entry>--f93dcbA3Content-Type: video/mp4Content-Transfer-Encoding: binary<Binary File Data>--f93dcbA3--Отдельно файл отправлять получается, а вместе с xml нет.