Skip to content

Instantly share code, notes, and snippets.

@laurentpetit
Last active December 11, 2015 05:49
Show Gist options
  • Save laurentpetit/4554977 to your computer and use it in GitHub Desktop.
Save laurentpetit/4554977 to your computer and use it in GitHub Desktop.
;; query
{:ssl-client-cert nil,
:remote-addr "10.82.21.198",
:scheme :http,
:request-method :post,
:query-string nil,
:content-type "application/x-www-form-urlencoded",
:uri "/jajascript/optimize",
:server-name "codestory2013.herokuapp.com",
:headers {"x-heroku-dynos-in-use" "1",
"user-agent" "curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3",
"accept" "*/*",
"host" "codestory2013.herokuapp.com",
"x-forwarded-proto" "http",
"x-forwarded-for" "88.190.22.96",
"content-type" "application/x-www-form-urlencoded",
"x-request-start" "1358416564442",
"x-heroku-queue-depth" "0",
"x-heroku-queue-wait-time" "0",
"content-length" "58",
"connection" "keep-alive", "x-forwarded-port" "80"},
:content-length 58,
:server-port 80,
:character-encoding nil,
:body "[\n {\"VOL\": \"AF514\", \"DEPART\":0, \"DUREE\":5, \"PRIX\": 10}\n]\n"}
;; answer (printlnée)
{:status 200,
:headers {x-request-start 1358416564442,
Content-Type application/json},
:body {"gain":10,"path":["AF514"]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment