Last active
July 23, 2016 12:43
-
-
Save ccapndave/cbe776cbbab6b580b9e2252a40dae8d9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPTIONS /_session HTTP/1.1 | |
Host: <myhost>:5984 | |
Connection: keep-alive | |
Pragma: no-cache | |
Cache-Control: no-cache | |
Access-Control-Request-Method: POST | |
Origin: http://localhost:3000 | |
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36 | |
Access-Control-Request-Headers: | |
Accept: */* | |
Referer: http://localhost:3000/ | |
Accept-Encoding: gzip, deflate, sdch | |
Accept-Language: en,fr-CH;q=0.8,fr;q=0.6,en-GB;q=0.4 | |
HTTP/1.1 405 Method Not Allowed | |
Server: CouchDB/1.6.1 (Erlang OTP/R16B03) | |
Date: Sat, 23 Jul 2016 12:31:12 GMT | |
Content-Type: text/plain; charset=utf-8 | |
Content-Length: 76 | |
Cache-Control: must-revalidate | |
Allow: GET,HEAD,POST,DELETE | |
Access-Control-Expose-Headers: Cache-Control, Content-Type, Server | |
Access-Control-Allow-Origin: http://localhost:3000 | |
Access-Control-Allow-Credentials: true | |
{"error":"method_not_allowed","reason":"Only GET,HEAD,POST,DELETE allowed"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl 'http://<myhost>:5984/_session' -X OPTIONS -H 'Pragma: no-cache' -H 'Access-Control-Request-Method: POST' -H 'Origin: http://localhost:3000' -H 'Accept-Encoding: gzip, deflate, sdch' -H 'Accept-Language: en,fr-CH;q=0.8,fr;q=0.6,en-GB;q=0.4' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36' -H 'Accept: */*' -H 'Cache-Control: no-cache' -H 'Referer: http://localhost:3000/' -H 'Connection: keep-alive' -H 'Access-Control-Request-Headers: ' --compressed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPTIONS /_session HTTP/1.1 | |
Host: <myhost>:6984 | |
Accept-Encoding: deflate, gzip | |
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:47.0) Gecko/20100101 Firefox/47.0 | |
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 | |
Accept-Language: en-US,en;q=0.5 | |
Access-Control-Request-Method: GET | |
Origin: http://localhost:3000 | |
Connection: keep-alive | |
HTTP/1.1 204 No Content | |
Server: CouchDB/1.6.1 (Erlang OTP/R16B03) | |
Date: Sat, 23 Jul 2016 12:39:12 GMT | |
Content-Length: 0 | |
Access-Control-Max-Age: 12345 | |
Access-Control-Allow-Origin: http://localhost:3000 | |
Access-Control-Allow-Methods: GET, PUT, POST, HEAD, DELETE, OPTIONS | |
Access-Control-Allow-Headers: | |
Access-Control-Allow-Credentials: true | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment