write() to TCP socket only for precise content types