Skip to content

Instantly share code, notes, and snippets.

@oravecz
Created November 7, 2011 14:40
Show Gist options
  • Select an option

  • Save oravecz/1345189 to your computer and use it in GitHub Desktop.

Select an option

Save oravecz/1345189 to your computer and use it in GitHub Desktop.
jcook$ curl --request POST \
--header "Content-Type: application/atom+xml" \
--header "Authorization: GoogleLogin auth=xxxx" \
--header "Content-Length: 380" \
--header "X-Upload-Content-Length: 0" \
--header "GData-Version: 3.0" \
--data-binary "@doc.xml" \
-v \
"https://docs.google.com/feeds/upload/create-session/default/private/full"
* About to connect() to docs.google.com port 443 (#0)
* Trying 74.125.225.37... connected
* Connected to docs.google.com (74.125.225.37) port 443 (#0)
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using RC4-SHA
* Server certificate:
* subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=*.google.com
* start date: 2011-09-20 06:07:12 GMT
* expire date: 2012-09-20 06:17:12 GMT
* subjectAltName: docs.google.com matched
* issuer: C=US; O=Google Inc; CN=Google Internet Authority
* SSL certificate verify ok.
> POST /feeds/upload/create-session/default/private/full HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
> Host: docs.google.com
> Accept: */*
> Content-Type: application/atom+xml
> Authorization: GoogleLogin auth=DQAAAN8AAABuT8DUok7TKZ9RQ9v5NJmtjQMhZw7jcxnqodgroVLWa4kX4cGYaS1IweBpW4NC3zCEdYdzP9xe_MDUSL9fH7JN5OnOBL-Vt9Mq2zt04tPJBMkE8v6j6C7MbYcxdbLIZk5cmFapSAeRRoWpaKRmtMxvwwMIHJwMbdDQTQ4Hv_eVRWgGFgexQ4Oex-7L24sOvzwiXTDmGK6_lf3VWuqa005Ut2fPwBxS8rmstDecvf71DkEXGfXDBk_7ebM6-IT0hawRDnqtFwyS2OTP3tcIi16S5un4uXCJurRRziK0iHW8vw
> Content-Length: 380
> X-Upload-Content-Length: 0
> GData-Version: 3.0
>
< HTTP/1.1 200 OK
< Server: HTTP Upload Server Built on Nov 3 2011 13:52:28 (1320353548)
< Location: https://docs.google.com/feeds/upload/create-session/default/private/full?upload_id=AEnB2Ur4lSo9pXITg5dKrY1LLqI-8e-ABpeij4r1fTvSwAM7Qs5deG_6LxsqkYi68WxrjA6KyEn7uc2XgSFBXqhca4wQFC8CPw
< Date: Mon, 07 Nov 2011 14:37:54 GMT
< Pragma: no-cache
< Expires: Fri, 01 Jan 1990 00:00:00 GMT
< Cache-Control: no-cache, no-store, must-revalidate
< Content-Length: 0
< Content-Type: text/html
<
* Connection #0 to host docs.google.com left intact
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment