Skip to content

Instantly share code, notes, and snippets.

@gugu
Created August 9, 2015 14:24
Show Gist options
  • Save gugu/f2a94a8e78ccdcb0e542 to your computer and use it in GitHub Desktop.
Save gugu/f2a94a8e78ccdcb0e542 to your computer and use it in GitHub Desktop.
POST /links/create/yourdoma.in HTTP/1.1
Accept: application/json
Accept-Encoding: gzip, deflate
Authorization: WRZgCztHImJoqdWO
Connection: keep-alive
Content-Length: 38
Content-Type: application/json
Host: shorturl.localhost
User-Agent: HTTPie/0.9.2
{
"originalURL": "http://original.url"
}
HTTP/1.1 200 OK
Connection: keep-alive
Content-Length: 40
Content-Type: application/json; charset=utf-8
Date: Sun, 31 May 2015 19:25:23 GMT
ETag: W/"28-d7828288"
X-Powered-By: Express
set-cookie: connect.sid=s%3A1K9AP2q5xwEi-BVVJ-YQML9niv0ncWqG.7ObGJMAgqRA441QryP56RBbvDymws6GHHq%2Fq2VJCx0o; Path=/; HttpOnly
{
"link": "http://yourdoma.in/AenEkR",
"status": "ok"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment