Skip to content

Instantly share code, notes, and snippets.

@ozzyaaron
Created June 16, 2011 02:18
Show Gist options
  • Save ozzyaaron/1028552 to your computer and use it in GitHub Desktop.
Save ozzyaaron/1028552 to your computer and use it in GitHub Desktop.
From Ubuntu
:~$ curl -v https://api.xero.com/api.xro/2.0/Contacts
* About to connect() to api.xero.com port 443 (#0)
* Trying 174.143.224.225... connected
* Connected to api.xero.com (174.143.224.225) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* Unknown SSL protocol error in connection to api.xero.com:443
* Closing connection #0
curl: (35) Unknown SSL protocol error in connection to api.xero.com:443
From OS X :
:~/Work/Rails/businessoxygencentral git:develop$ curl -v https://api.xero.com/api.xro/2.0/Contacts
* About to connect() to api.xero.com port 443 (#0)
* Trying 174.143.224.225... connected
* Connected to api.xero.com (174.143.224.225) 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 AES128-SHA
* Server certificate:
* subject: C=NZ; L=Wellington; O=Xero; OU=IT; CN=*.xero.com
* start date: 2010-11-16 23:46:51 GMT
* expire date: 2012-02-16 00:35:54 GMT
* common name: *.xero.com (matched)
* issuer: C=US; O=Entrust, Inc.; OU=www.entrust.net/rpa is incorporated by reference; OU=(c) 2009 Entrust, Inc.; CN=Entrust Certification Authority - L1C
* SSL certificate verify ok.
> GET /api.xro/2.0/Contacts HTTP/1.1
> User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3
> Host: api.xero.com
> Accept: */*
etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment