Created
August 8, 2012 06:01
-
-
Save hongqn/3292588 to your computer and use it in GitHub Desktop.
This file contains 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
$ curl -v https://www.douban.com/service/auth2/token | |
* About to connect() to www.douban.com port 443 (#0) | |
* Trying 211.147.4.31... connected | |
* successfully set certificate verify locations: | |
* CAfile: none | |
CApath: /gentoo/etc/ssl/certs | |
* SSLv3, TLS handshake, Client hello (1): | |
* SSLv3, TLS handshake, Server hello (2): | |
* SSLv3, TLS handshake, CERT (11): | |
* SSLv3, TLS handshake, Server key exchange (12): | |
* 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 ECDHE-RSA-AES256-SHA | |
* Server certificate: | |
* subject: serialNumber=BwamABOJwbswekdk3uyPGoFaNxMX1nCa; C=CN; ST=Beijing; L=Beijing; O=Douban Inc.; OU=Technology Department; CN=*.douban.com | |
* start date: 2011-06-08 21:27:24 GMT | |
* expire date: 2013-06-11 00:44:13 GMT | |
* subjectAltName: www.douban.com matched | |
* issuer: C=US; O=GeoTrust, Inc.; CN=GeoTrust SSL CA | |
* SSL certificate verify ok. | |
> GET /service/auth2/token HTTP/1.1 | |
> User-Agent: curl/7.23.1 (x86_64-apple-darwin11) libcurl/7.23.1 OpenSSL/1.0.0e zlib/1.2.5.1 | |
> Host: www.douban.com | |
> Accept: */* | |
> | |
< HTTP/1.1 400 Bad Request | |
< Server: nginx | |
< Content-Type: application/json; charset=utf-8 | |
< Content-Length: 101 | |
< Connection: keep-alive | |
< Keep-Alive: timeout=10 | |
< Date: Wed, 08 Aug 2012 06:00:09 GMT | |
< Expires: -1 | |
< | |
* Connection #0 to host www.douban.com left intact | |
{"msg":"required_parameter_is_missing: client_id","code":113,"request":"GET \/service\/auth2\/token"}* 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