HTTP codes

In my recent explorations, I found an interesting service that might come in handy for testing scripts: httpstat.us. As described on the site, it is a super simple service for generating different HTTP codes. It pretty much does what’s on the tin: $ curl -s -v http://httpstat.us/200 * Trying 104.31.87.226... * TCP_NODELAY set * Connected to httpstat.us (104.31.87.226) port 80 (#0) > GET /200 HTTP/1.1 > Host: httpstat.us > User-Agent: curl/7.

Read More

Fun with curl

A simple way to get a little understanding on all of the back and forth that goes into an HTTP request is to use the venerable curl command. If you run curl with the following arguments: $ curl -s -v -o /dev/null https://l10systems.com You get back a verbose (-v) listing of the calls that suppresses the payload response (-o /dev/null) and doesn’t show the status of the call (-s). This allows you to just see the headers and the back and forth that goes into an HTTP request:

Read More