Skip to content

Instantly share code, notes, and snippets.

@msavy
Created February 9, 2015 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msavy/e7cc5d098be19763ced8 to your computer and use it in GitHub Desktop.
Save msavy/e7cc5d098be19763ced8 to your computer and use it in GitHub Desktop.
[msavy@mmbp tmp]$ curl -X OPTIONS -vH "Origin: forbidden.example" http://localhost:8080/apiman-gateway/123/ECHO/2?apikey=4de7d6d9-68c0-4ee7-98ee-6c31ea81c15a
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> OPTIONS /apiman-gateway/123/ECHO/2?apikey=4de7d6d9-68c0-4ee7-98ee-6c31ea81c15a HTTP/1.1
> User-Agent: curl/7.37.1
> Host: localhost:8080
> Accept: */*
> Origin: forbidden.example
>
< HTTP/1.1 405 Method Not Allowed
< Connection: keep-alive
< X-Powered-By: Undertow/1
* Server WildFly/8 is not blacklisted
< Server: WildFly/8
< Content-Length: 83
< Content-Type: text/html
< Date: Mon, 09 Feb 2015 12:44:17 GMT
<
* Connection #0 to host localhost left intact
<html><head><title>Error</title></head><body>405 - Method Not Allowed</body></html>[msavy@mmbp tmp]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment