Simple CORS API for issuing HEAD requests and other things.
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

This is a simple CORS API that allows any web page to issue a HEAD request and obtain TLS information about any website.

Quick Start

This will start up the server on port 3000.

git clone git://
cd head-cors-api
npm install
node app.js


Obtaining header information about any URL:

$ curl http://localhost:3000/?url=

  "server": "nginx",
  "date": "Thu, 04 Oct 2012 16:36:13 GMT",
  "content-type": "text/html; charset=utf-8",
  "connection": "keep-alive",
  "status": "200 OK",
  "x-frame-options": "deny",
  "set-cookie": [
  "cache-control": "private, max-age=0, must-revalidate",
  "content-length": "23043",
  "x-runtime": "13",
  "strict-transport-security": "max-age=2592000",
  "etag": "\"9cb94bd366b6b201c7d27bbf07c145a3\""

Obtaining TLS information about any URL:

$ curl http://localhost:3000/tls/

  "cert": {
    "subject": {
      "businessCategory": "Private Organization",
      "": "US",
      "": "California",
      "serialNumber": "C3268102",
      "C": "US",
      "ST": "California",
      "L": "San Francisco",
      "O": "GitHub, Inc.",
      "CN": ""
    "issuer": {
      "C": "US",
      "O": "DigiCert Inc",
      "OU": "",
      "CN": "DigiCert High Assurance EV CA-1"
    "subjectaltname": ",",
    "modulus": "...",
    "exponent": "10001",
    "valid_from": "May 27 00:00:00 2011 GMT",
    "valid_to": "Jul 29 12:00:00 2013 GMT",
    "fingerprint": "CE:67:99:25:2C:AC:78:12:7D:94:B5:62:2C:31:C5:16:A6:34:73:53",
    "ext_key_usage": [
  "cipher": {
    "name": "RC4-SHA",
    "version": "TLSv1/SSLv3"
  "authorized": true