Created
September 21, 2012 19:05
-
-
Save tswann/3763266 to your computer and use it in GitHub Desktop.
POST
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://localhost:51307/api/tasks -X POST -d "id=2&subject=test&description=blah" -v | |
| > POST /api/tasks HTTP/1.1 | |
| > User-Agent: curl/7.23.1 (x86_64-pc-win32) libcurl/7.23.1 OpenSSL/0.9.8r zlib/1.2.5 | |
| > Host: localhost:51307 | |
| > Accept: */* | |
| > Content-Length: 34 | |
| > Content-Type: application/x-www-form-urlencoded | |
| > | |
| * upload completely sent off: 34 out of 34 bytes | |
| < HTTP/1.1 201 Created | |
| < Cache-Control: no-cache | |
| < Pragma: no-cache | |
| < Content-Type: application/json; charset=utf-8 | |
| < Expires: -1 | |
| < Location: http://localhost:51307/api/tasks/2 | |
| < Server: Microsoft-IIS/8.0 | |
| < X-AspNet-Version: 4.0.30319 | |
| < X-SourceFiles: =?UTF-8?B?RDpcU09VUkNFXHBsdXJhbHNpZ2h0XG12YzRcVGFza01hbmFnZXJcVGFza01hbmFnZXJcYXBpXHRhc2tz?= | |
| < X-Powered-By: ASP.NET | |
| < Date: Fri, 21 Sep 2012 19:03:49 GMT | |
| < Content-Length: 46 | |
| < | |
| {"Id":2,"Subject":"test","Description":"blah"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment