내가 컬 세션에서 모든 데이터를 설정하는 방법 궁금 컬를 통해 XML 및 헤더를 전송 :는 PHP를 통해
POST /feeds/api/users/default/uploads HTTP/1.1
Host: uploads.gdata.youtube.com
Authorization: AuthSub token="DXAA...sdb8"
GData-Version: 2
X-GData-Key: key=adf15ee97731bca89da876c...a8dc
Slug: video-test.mp4
Content-Type: multipart/related; boundary="f93dcbA3"
Content-Length: 1941255
Connection: close
--f93dcbA3
Content-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>
--f93dcbA3
Content-Type: video/mp4
Content-Transfer-Encoding: binary
<Binary File Data>
--f93dcbA3--
내가 무슨이의 (일부 헤더, 다음 --f93dcbA3
더 헤더가 이유를 이해하지 않습니다 경계?), 일부 XML (왜 여기?), 더 많은 헤더와 파일의 내용.
xml
부분과 '경계'없이 요청하는 방법을 알고 있습니다.
어떤 도움
부탁드립니다 : D
감사합니다. – greenbandit