Skip to content

Instantly share code, notes, and snippets.

@wasnotrice
Created November 15, 2011 04:52
Show Gist options
  • Select an option

  • Save wasnotrice/1366189 to your computer and use it in GitHub Desktop.

Select an option

Save wasnotrice/1366189 to your computer and use it in GitHub Desktop.
create a new user
huckle:se560 eric$ curl -d "<user> <email>bob@whitequail.org</email> <node>http://bobs-whizbang.elasticbeanstalk.com</node> </user>" http://pure-summer-1824.herokuapp.com/v2/users -v
* About to connect() to pure-summer-1824.herokuapp.com port 80 (#0)
* Trying 107.22.178.183... connected
* Connected to pure-summer-1824.herokuapp.com (107.22.178.183) port 80 (#0)
> POST /v2/users 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: pure-summer-1824.herokuapp.com
> Accept: */*
> Content-Length: 103
> Content-Type: application/x-www-form-urlencoded
>
< HTTP/1.1 201 Created
< Content-Type: text/html;charset=utf-8
< Location: /v2/users/bob@whitequail.org
< Server: thin 1.2.11 codename Bat-Shit Crazy
< X-Frame-Options: sameorigin
< X-Xss-Protection: 1; mode=block
< Content-Length: 0
< Connection: keep-alive
<
* Connection #0 to host pure-summer-1824.herokuapp.com left intact
* Closing connection #0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment