Skip to content

Instantly share code, notes, and snippets.

@phosphene
Created January 26, 2011 19:54
Show Gist options
  • Save phosphene/797316 to your computer and use it in GitHub Desktop.
Save phosphene/797316 to your computer and use it in GitHub Desktop.
opening connection to localhost...
opened
opening connection to localhost...
opened
<- "POST /users.json HTTP/1.1\r\nContent-Type: application/json\r\nAccept: */*\r\nUser-Agent: Ruby\r\nConnection: close\r\nHost: localhost:9292\r\nContent-Length: 209\r\n\r\n"
<- "{\"user\":{\"email\":\"ed@cronos.com\",\"encrypted_password\":\"$2a$10$fsLeIBMVmx8nfmKs3mp3R.HbUgTmivddTUuO.0GzQkONMWV.ylaAe\",\"password_salt\":\"$2a$10$fsLeIBMVmx8nfmKs3mp3R.\",\"username\":\"faustrolle\",\"zip_code\":\"97221\"}}"
-> "HTTP/1.1 500 Internal Server Error \r\n"
-> "Content-Length: 321\r\n"
-> "Content-Type: text/html\r\n"
-> "Server: WEBrick/1.3.1 (Ruby/1.8.7/2011-01-18)\r\n"
-> "Date: Wed, 26 Jan 2011 19:45:19 GMT\r\n"
-> "Connection: close\r\n"
-> "\r\n"
reading 321 bytes...
-> "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\">\n<HTML>\n <HEAD><TITLE>Internal Server Error</TITLE></HEAD>\n <BODY>\n <H1>Internal Server Error</H1>\n no data available to read from the socket\n <HR>\n <ADDRESS>\n WEBrick/1.3.1 (Ruby/1.8.7/2011-01-18) at\n localhost:9292\n </ADDRESS>\n </BODY>\n</HTML>\n"
read 321 bytes
Conn close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment