So, I made a simple socket server using python. And now I’m trying to structure a proper http response. However, I can’t seem to find any sort of tutorial or spec that discusses how to format http responses.
Could someone point me to the right place?
You may want to check out the following article:
The section Sample HTTP Exchange could help you getting started. Quoting:
The full protocol is defined in RFC 2616 if you want to get serious about this.