How to prevent packet fragmentation for a HttpWebRequest
问题 I am having a problem using HttpWebRequest against a HTTP daemon on an embedded device. The problem appears to be that there is enough of a delay between the http headers being written to the socket stream, and the http payload (a POST), that the socket releases what's in the socket buffer to the server. This results in the HTTP request being split over two packets (fragmentation). This is perfectly valid, of course, however the server the other end doesn't cope with it if the packets are