Skip to content

Instantly share code, notes, and snippets.

@pedroreys
Created February 17, 2012 03:15
Show Gist options
  • Save pedroreys/1850262 to your computer and use it in GitHub Desktop.
Save pedroreys/1850262 to your computer and use it in GitHub Desktop.
406 response via Message Handler
C:\dev> curl -v -H "Accept: text/unknown_media_type" localhost:1705/api/values
* About to connect() to localhost port 1705 (#0)
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 1705 (#0)
> GET /api/values HTTP/1.1
> User-Agent: curl/7.21.1 (i686-pc-mingw32) libcurl/7.21.1 OpenSSL/0.9.8r zlib/1.2.3
> Host: localhost:1705
> Accept: text/unknown_media_type
>
< HTTP/1.1 406 Not Acceptable
< Server: ASP.NET Development Server/10.0.0.0
< Date: Fri, 17 Feb 2012 02:59:58 GMT
< X-AspNet-Version: 4.0.30319
< Cache-Control: no-cache
< Pragma: no-cache
< Expires: -1
< Content-Length: 0
< Connection: Close
<
* Closing connection #0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment