Created
April 10, 2011 17:54
-
-
Save perezd/912568 to your computer and use it in GitHub Desktop.
attempting to talk to cloudant via http/https using curl w/ diff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -1,9 +1,26 @@ | |
-Octave:~ derek$ curl -vX PUT http://nodebug:[email protected]/test/myDoc4/photo?rev=43-e5e93a0702db48fec34d0cd77e43dec1 --data-binary @cherryTree.JPG -H "Content-Type: image/jpg" | |
-* About to connect() to nodebug.cloudant.com port 80 (#0) | |
+Octave:~ derek$ curl -vX PUT https://nodebug:[email protected]/test/myDoc4/photo?rev=45-096d89a0f8d6d0bd6b7be608c687b532 --data-binary @cherryTree.JPG -H "Content-Type: image/jpg" | |
+* About to connect() to nodebug.cloudant.com port 443 (#0) | |
* Trying 184.72.47.54... connected | |
-* Connected to nodebug.cloudant.com (184.72.47.54) port 80 (#0) | |
+* Connected to nodebug.cloudant.com (184.72.47.54) 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 AES256-SHA | |
+* Server certificate: | |
+* subject: O=*.cloudant.com; OU=Domain Control Validated; CN=*.cloudant.com | |
+* start date: 2011-01-13 16:22:48 GMT | |
+* expire date: 2012-01-19 03:56:28 GMT | |
+* subjectAltName: nodebug.cloudant.com matched | |
+* issuer: C=US; ST=Arizona; L=Scottsdale; O=GoDaddy.com, Inc.; OU=http://certificates.godaddy.com/repository; CN=Go Daddy Secure Certification Authority; serialNumber=07969287 | |
+* SSL certificate verify ok. | |
* Server auth using Basic with user 'nodebug' | |
-> PUT /test/myDoc4/photo?rev=43-e5e93a0702db48fec34d0cd77e43dec1 HTTP/1.1 | |
+> PUT /test/myDoc4/photo?rev=45-096d89a0f8d6d0bd6b7be608c687b532 HTTP/1.1 | |
> Authorization: Basic bm9kZWJ1ZzpvbWdub2RlYnVn | |
> User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3 | |
> Host: nodebug.cloudant.com | |
@@ -16,11 +33,12 @@ | |
< HTTP/1.1 201 Created | |
< Server: CouchDB/1.0.0 (Erlang OTP/R13B04) | |
< Location: http://nodebug.cloudant.com/test/myDoc4/photo | |
-< Date: Sun, 10 Apr 2011 17:54:15 GMT | |
+< Date: Sun, 10 Apr 2011 17:55:34 GMT | |
< Content-Type: text/plain;charset=utf-8 | |
< Content-Length: 70 | |
< Cache-Control: must-revalidate | |
< | |
-{"ok":true,"id":"myDoc4","rev":"44-438530acef7245421ff3b6a9998adf56"} | |
+{"ok":true,"id":"myDoc4","rev":"46-f53b6a4bc0b5bc0d99d492d04c566d28"} | |
* Connection #0 to host nodebug.cloudant.com left intact | |
* Closing connection #0 | |
+* SSLv3, TLS alert, Client hello (1): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Octave:~ derek$ curl -vX PUT http://nodebug:[email protected]/test/myDoc4/photo?rev=43-e5e93a0702db48fec34d0cd77e43dec1 --data-binary @cherryTree.JPG -H "Content-Type: image/jpg" | |
* About to connect() to nodebug.cloudant.com port 80 (#0) | |
* Trying 184.72.47.54... connected | |
* Connected to nodebug.cloudant.com (184.72.47.54) port 80 (#0) | |
* Server auth using Basic with user 'nodebug' | |
> PUT /test/myDoc4/photo?rev=43-e5e93a0702db48fec34d0cd77e43dec1 HTTP/1.1 | |
> Authorization: Basic bm9kZWJ1ZzpvbWdub2RlYnVn | |
> User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3 | |
> Host: nodebug.cloudant.com | |
> Accept: */* | |
> Content-Type: image/jpg | |
> Content-Length: 189402 | |
> Expect: 100-continue | |
> | |
< HTTP/1.1 100 Continue | |
< HTTP/1.1 201 Created | |
< Server: CouchDB/1.0.0 (Erlang OTP/R13B04) | |
< Location: http://nodebug.cloudant.com/test/myDoc4/photo | |
< Date: Sun, 10 Apr 2011 17:54:15 GMT | |
< Content-Type: text/plain;charset=utf-8 | |
< Content-Length: 70 | |
< Cache-Control: must-revalidate | |
< | |
{"ok":true,"id":"myDoc4","rev":"44-438530acef7245421ff3b6a9998adf56"} | |
* Connection #0 to host nodebug.cloudant.com left intact | |
* Closing connection #0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Octave:~ derek$ curl -vX PUT https://nodebug:[email protected]/test/myDoc4/photo?rev=45-096d89a0f8d6d0bd6b7be608c687b532 --data-binary @cherryTree.JPG -H "Content-Type: image/jpg" | |
* About to connect() to nodebug.cloudant.com port 443 (#0) | |
* Trying 184.72.47.54... connected | |
* Connected to nodebug.cloudant.com (184.72.47.54) 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 AES256-SHA | |
* Server certificate: | |
* subject: O=*.cloudant.com; OU=Domain Control Validated; CN=*.cloudant.com | |
* start date: 2011-01-13 16:22:48 GMT | |
* expire date: 2012-01-19 03:56:28 GMT | |
* subjectAltName: nodebug.cloudant.com matched | |
* issuer: C=US; ST=Arizona; L=Scottsdale; O=GoDaddy.com, Inc.; OU=http://certificates.godaddy.com/repository; CN=Go Daddy Secure Certification Authority; serialNumber=07969287 | |
* SSL certificate verify ok. | |
* Server auth using Basic with user 'nodebug' | |
> PUT /test/myDoc4/photo?rev=45-096d89a0f8d6d0bd6b7be608c687b532 HTTP/1.1 | |
> Authorization: Basic bm9kZWJ1ZzpvbWdub2RlYnVn | |
> User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3 | |
> Host: nodebug.cloudant.com | |
> Accept: */* | |
> Content-Type: image/jpg | |
> Content-Length: 189402 | |
> Expect: 100-continue | |
> | |
< HTTP/1.1 100 Continue | |
< HTTP/1.1 201 Created | |
< Server: CouchDB/1.0.0 (Erlang OTP/R13B04) | |
< Location: http://nodebug.cloudant.com/test/myDoc4/photo | |
< Date: Sun, 10 Apr 2011 17:55:34 GMT | |
< Content-Type: text/plain;charset=utf-8 | |
< Content-Length: 70 | |
< Cache-Control: must-revalidate | |
< | |
{"ok":true,"id":"myDoc4","rev":"46-f53b6a4bc0b5bc0d99d492d04c566d28"} | |
* Connection #0 to host nodebug.cloudant.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