Skip to content

Instantly share code, notes, and snippets.

@joshrotenberg
Created May 4, 2013 19:36
Show Gist options
  • Select an option

  • Save joshrotenberg/5518496 to your computer and use it in GitHub Desktop.

Select an option

Save joshrotenberg/5518496 to your computer and use it in GitHub Desktop.
tl;dr searchBatch call
Joshs-MacBook-Air:~ josh$ curl https://api.tldr.io/tldrs/s":["http://www.taigeair.com/why-gmail-2013-sucks-terribad-user-experience.html"]}' -v
* About to connect() to api.tldr.io port 443 (#0)
* Trying 178.79.181.8...
* connected
* Connected to api.tldr.io (178.79.181.8) port 443 (#0)
* 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 DHE-RSA-AES256-SHA
* Server certificate:
* subject: serialNumber=kJXFpO1Akcw67/xmRKYPiu--zHTwEp6P; OU=GT83957154; OU=See www.rapidssl.com/resources/cps (c)12; OU=Domain Control Validated - RapidSSL(R); CN=*.tldr.io
* start date: 2012-09-17 11:58:00 GMT
* expire date: 2013-09-19 20:25:13 GMT
* subjectAltName: api.tldr.io matched
* issuer: C=US; O=GeoTrust, Inc.; CN=RapidSSL CA
* SSL certificate verify ok.
> POST /tldrs/searchBatch HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
> Host: api.tldr.io
> Accept: */*
> Content-Length: 88
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 88 out of 88 bytes
< HTTP/1.1 200 OK
< Server: nginx/1.2.3
< Date: Sat, 04 May 2013 18:18:23 GMT
< Content-Type: application/json; charset=utf-8
< Content-Length: 22
< Connection: keep-alive
< X-Powered-By: Express
< Set-Cookie: tldrsess=s%3Aum5%2BOTPwE0BRj%2FHkdvkqEsV3.TMN%2FIlnUQ4Td0Yp%2BjdjKpkZ4ui2Fn8SyxozACQId%2BwM; Domain=.tldr.io; Path=/; Expires=Sun, 04 May 2014 18:18:23 GMT
< Cache-Control: max-age=1, must-revalidate
<
* Connection #0 to host api.tldr.io left intact
{"tldrs":[],"urls":{}}* 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