How can I force netcat to send my input immediately, not just on newlines? I want to test an HTTP parser manually and check how it behaves when header lines are spread across multiple packets.
Use the "eof" key, CtrlD. When pressed in the middle of a line, it will give to netcat everything that has been input at that point.
The buffering is actually done by the tty layer and not handled by