Skip to content

Instantly share code, notes, and snippets.

@juno
Last active Aug 29, 2015
Embed
What would you like to do?

curlでrack-corsのデバッグ

$ curl -I -H 'Origin: http://example.com' --verbose http://ural.dev/assets/fontawesome-webfont.woff
* Adding handle: conn: 0x7f8589800000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7f8589800000) send_pipe: 1, recv_pipe: 0
* About to connect() to ural.dev port 80 (#0)
*   Trying 127.0.0.1...
* Connected to ural.dev (127.0.0.1) port 80 (#0)
> HEAD /assets/fontawesome-webfont.woff HTTP/1.1
> User-Agent: curl/7.30.0
> Host: ural.dev
> Accept: */*
> Origin: http://example.com
>
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Content-Type: application/font-woff
Content-Type: application/font-woff
< Content-Length: 44432
Content-Length: 44432
< Cache-Control: public, must-revalidate
Cache-Control: public, must-revalidate
< Last-Modified: Sat, 04 Jan 2014 19:12:18 GMT
Last-Modified: Sat, 04 Jan 2014 19:12:18 GMT
< ETag: "4d6d992435b87d7eebfc287bbb7b02b0"
ETag: "4d6d992435b87d7eebfc287bbb7b02b0"
< Access-Control-Allow-Origin: http://example.com
Access-Control-Allow-Origin: http://example.com
< Access-Control-Allow-Methods: GET
Access-Control-Allow-Methods: GET
< Access-Control-Expose-Headers:
Access-Control-Expose-Headers:
< Access-Control-Max-Age: 1728000
Access-Control-Max-Age: 1728000
< Access-Control-Allow-Credentials: true
Access-Control-Allow-Credentials: true
< Vary: Origin
Vary: Origin
< X-Request-Id: 56525139-96f0-46d6-b34e-cdb09fc626e3
X-Request-Id: 56525139-96f0-46d6-b34e-cdb09fc626e3
< X-Runtime: 0.016987
X-Runtime: 0.016987
< Date: Fri, 31 Jan 2014 11:28:19 GMT
Date: Fri, 31 Jan 2014 11:28:19 GMT
< Connection: keep-alive
Connection: keep-alive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment