Skip to content

Instantly share code, notes, and snippets.

@scottwb
Created August 21, 2012 22:10
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 scottwb/3419893 to your computer and use it in GitHub Desktop.
Save scottwb/3419893 to your computer and use it in GitHub Desktop.
swb-mbp% curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d ' {"candidate":{"firstName":"Scott","lastName":"Bradley","email":"scottwb@validas.com","currentPosition":"VP of Engineering","currentCompany":"Validas, LLC","location":"Kirkland, WA","message":"You should hire me because...","resume":"http://....","position":"linux","twitter":"@scottwb69","github":"scottwb","website":"http://scottwb.com/","blog":"http://scottwb.com/","otherLink1":"http://foo.com/","otherLink2":"http://bar.com/","test":true}}' http://jobsapi.validas.com/candidates.json
* About to connect() to jobsapi.validas.com port 80 (#0)
* Trying 23.22.208.238... connected
* Connected to jobsapi.validas.com (23.22.208.238) port 80 (#0)
> POST /candidates.json HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
> Host: jobsapi.validas.com
> Accept: application/json
> Content-type: application/json
> Content-Length: 444
>
< HTTP/1.1 201 Created
< Date: Tue, 21 Aug 2012 22:10:08 GMT
< Server: thin 1.4.1 codename Chromeo
< X-Frame-Options: sameorigin
< X-XSS-Protection: 1; mode=block
< Content-Type: application/json;charset=utf-8
< X-SecretHint: Use the word 'lightning' in your message body in a subtle but funny way, and we will prioritize your application at the head of the queue.
< Content-Length: 684
< Connection: close
<
* Closing connection #0
{"status":{"code":201,"message":"Thank you for applying, Scott! We will review your application and contact you if we wish to speak with you further. THIS WAS JUST A TEST. Remove the test:true attribute to submit your application for real."},"candidate":{"firstName":"Scott","lastName":"Bradley","email":"scottwb@validas.com","currentPosition":"VP of Engineering","currentCompany":"Validas, LLC","location":"Kirkland, WA","message":"You should hire me because...","resume":"http://....","position":"linux","twitter":"@scottwb69","github":"scottwb","website":"http://scottwb.com/","blog":"http://scottwb.com/","otherLink1":"http://foo.com/","otherLink2":"http://bar.com/","test":true}}% swb-mbp%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment