Skip to content

Testing

With the command running locally:

1
2
$ ./httpcats
2021/06/18 13:30:14 Listening on 0.0.0.0:8080

We can quickly test it's working from the command line:

1
2
3
4
5
6
7
$ curl -sI localhost:8080/
HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Length: 3542
Content-Type: text/html; charset=utf-8
Last-Modified: Sat, 15 May 2021 08:14:20 GMT
Date: Fri, 18 Jun 2021 23:38:33 GMT

Or we can visually inspect it in the browser:

Application inspection

Beautiful.

Broken Images

If you're not seeing the images but instead you're seeing empty boxes, then make sure you've downloaded the ZIP file containing the images and you've extracted them to the correct location: static/images/cats/


Last update: August 25, 2021