Advertisement
overtone

my output

Mar 2nd, 2012
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.28 KB | None | 0 0
  1. curl -v -X POST -d "key=val" http://127.0.0.1:4567/postman/123456
  2. * About to connect() to 127.0.0.1 port 4567 (#0)
  3. *   Trying 127.0.0.1... connected
  4. * Connected to 127.0.0.1 (127.0.0.1) port 4567 (#0)
  5. > POST /postman/123456 HTTP/1.1
  6. > User-Agent: curl/7.21.6 (x86_64-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0e zlib/1.2.3.4 libidn/1.22 librtmp/2.3
  7. > Host: 127.0.0.1:4567
  8. > Accept: */*
  9. > Content-Length: 7
  10. > Content-Type: application/x-www-form-urlencoded
  11. >
  12. < HTTP/1.1 404 Not Found
  13. < X-Frame-Options: sameorigin
  14. < X-Xss-Protection: 1; mode=block
  15. < Content-Type: text/html;charset=utf-8
  16. < X-Cascade: pass
  17. < Content-Length: 451
  18. < Server: WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
  19. < Date: Fri, 02 Mar 2012 23:11:57 GMT
  20. < Connection: Keep-Alive
  21. <
  22. <!DOCTYPE html>
  23. <html>
  24. <head>
  25.   <style type="text/css">
  26.   body { text-align:center;font-family:helvetica,arial;font-size:22px;
  27.     color:#888;margin:20px}
  28.   #c {margin:0 auto;width:500px;text-align:left}
  29.   </style>
  30. </head>
  31. <body>
  32.   <h2>Sinatra doesn&rsquo;t know this ditty.</h2>
  33.   <img src='http://127.0.0.1:4567/__sinatra__/404.png'>
  34.   <div id="c">
  35.     Try this:
  36.     <pre>post '/postman/123456' do
  37.   "Hello World"
  38. end</pre>
  39.   </div>
  40. </body>
  41. </html>
  42. * Connection #0 to host 127.0.0.1 left intact
  43. * Closing connection #0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement