Created
August 1, 2017 16:25
-
-
Save artnc/cd3b2cb1e2a49baaac03ecdf030c980c 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
$ time curl -v -H "Authorization: bearer XXXXXX" -d '{"query":"query{organization(login:\"duolingo\"){repositories(first:100){edges{node{name pullRequests(last:100){edges{node{author{login}bodyText number title}}}}}}}}"}' https://api.github.com/graphql | |
* Trying 192.30.253.116... | |
* TCP_NODELAY set | |
* Connected to api.github.com (192.30.253.116) port 443 (#0) | |
* ALPN, offering h2 | |
* ALPN, offering http/1.1 | |
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH | |
* successfully set certificate verify locations: | |
* CAfile: /etc/ssl/certs/ca-certificates.crt | |
CApath: none | |
* TLSv1.2 (OUT), TLS handshake, Client hello (1): | |
* TLSv1.2 (IN), TLS handshake, Server hello (2): | |
* TLSv1.2 (IN), TLS handshake, Certificate (11): | |
* TLSv1.2 (IN), TLS handshake, Server key exchange (12): | |
* TLSv1.2 (IN), TLS handshake, Server finished (14): | |
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16): | |
* TLSv1.2 (OUT), TLS change cipher, Client hello (1): | |
* TLSv1.2 (OUT), TLS handshake, Finished (20): | |
* TLSv1.2 (IN), TLS handshake, Finished (20): | |
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256 | |
* ALPN, server accepted to use http/1.1 | |
* Server certificate: | |
* subject: C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=*.github.com | |
* start date: Jan 18 00:00:00 2017 GMT | |
* expire date: Apr 17 12:00:00 2020 GMT | |
* subjectAltName: host "api.github.com" matched cert's "*.github.com" | |
* issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA | |
* SSL certificate verify ok. | |
> POST /graphql HTTP/1.1 | |
> Host: api.github.com | |
> User-Agent: curl/7.54.1 | |
> Accept: */* | |
> Authorization: bearer XXXXXX | |
> Content-Length: 167 | |
> Content-Type: application/x-www-form-urlencoded | |
> | |
* upload completely sent off: 167 out of 167 bytes | |
< HTTP/1.1 405 Not Allowed | |
< Server: GitHub.com | |
< Date: Tue, 01 Aug 2017 16:23:41 GMT | |
< Content-Type: text/html | |
< Content-Length: 166 | |
< X-GitHub-Request-Id: 05A8:3D43:2C2314C:583DCF2:5980AB03 | |
< | |
<html> | |
<head><title>405 Not Allowed</title></head> | |
<body bgcolor="white"> | |
<center><h1>405 Not Allowed</h1></center> | |
<hr><center>nginx</center> | |
</body> | |
</html> | |
* Connection #0 to host api.github.com left intact | |
curl -v -H "Authorization: bearer XXXXXX" - 0.02s user 0.00s system 0% cpu 10.214 total |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment