<div dir="ltr">So interesting situation - our code works with browsers and nc since they place the entire request into the initial buffer and I can parse that appropriately including carriage returns. However with telnet, hitting return closes the read request and I have to read again for the next line, etc.<div>
<br></div><div>So while it works perfectly for browsers/nc it processes on the first return from telnet so can&#39;t support headers (while it does for nc/browsers).</div><div><br></div><div>Any ideas from others how to work around this? Would it make sense to detect the client connecting to the socket and change behavior appropriately?</div>
</div>