Contact Info

sean [at] coreitpro [dot] com gpg key

Mastodon

sc68cal on Libera

A JHTTP Example

Updated JHTTP

I wrote some code to create a class that could handle file requests. It’s very primitive, though I did make a small attempt to prevent path traversal through stripping out occurrences of the “../” ASCII string. I made no attempt to stop UTF-8 combinations of those characters, though on a lighter note my code is so primitive that it would first need to be able to understand UTF-8.

I doubt that this example is even HTTP/1.1 compliant, so don’t start throwing out your W3C Jigsaw deployments or your Apache installs.