Skip to content

Instantly share code, notes, and snippets.

@lmarburger
Created May 21, 2009 13:37
Show Gist options
  • Save lmarburger/115465 to your computer and use it in GitHub Desktop.
Save lmarburger/115465 to your computer and use it in GitHub Desktop.
<?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>
#!/bin/sh
curl -L \
-H "Authorization: GoogleLogin auth=REMOVED
-H "GData-Version: 2" \
-H "X-GData-Client: REMOVED" \
-H "X-GData-Key: key=REMOVED" \
-H "Slug: test.mp4" \
-H "Content-Type: multipart/related" \
-F "[email protected];type=application/atom+xml;charset=UTF-8" \
-F "file=@/Users/Larry/Desktop/curl/Sample.mov" \
--trace-ascii /Users/Larry/Desktop/curl/tmp.txt \
http://uploads.gdata.youtube.com/feeds/api/users/lmarburger/uploads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment