Skip to content

Instantly share code, notes, and snippets.

@hamishforbes
Created November 26, 2012 15:22
Show Gist options
  • Save hamishforbes/0ab5b15320e635b5ad7e to your computer and use it in GitHub Desktop.
Save hamishforbes/0ab5b15320e635b5ad7e to your computer and use it in GitHub Desktop.
ledge methods
hamish@Hamish-MBP ~/edge> curln -X FOOBAR localhost:9000/
* About to connect() to localhost port 9000 (#0)
* Trying ::1...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connection refused
* Trying 127.0.0.1...
* connected
* Connected to localhost (127.0.0.1) port 9000 (#0)
> FOOBAR / 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: localhost:9000
> Accept: */*
>
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
< HTTP/1.1 200 OK
< Content-Type: text/html; charset=UTF-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Vary: Accept-Encoding
< X-Cache: MISS from hamish-mbp.local
< Via: 1.1 edgetest.local:9000 (ledge/0.06)
< Date: Mon, 26 Nov 2012 15:21:08 GMT
< Cache-Control: max-age=10
< Server: lighttpd/1.4.28
<
{ [data not shown]
100 41935 0 41935 0 0 30077 0 --:--:-- 0:00:01 --:--:-- 30147
* Connection #0 to host localhost left intact
* Closing connection #0
hamish@Hamish-MBP ~/edge>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment