I am using Python 3 and the built-in socket library but this could be generalised.
Normally when sending an HTTP respon