You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 6, 2019. It is now read-only.
I am trying to serve up some html content to a browser over a tacopie server. This was my message handler - where I tried both sync and async writes and trying to close the connection when done. Neither works, maybe because I dont understand how the write/disconnect works. Any ideas? thank you!
Sorry for the time to reply, I finally could have a look.
I tried your code and it first worked well over curl and netcat, but apparently not with a browser (I tried chrome and safari).
So my guess was that there is an issue with the content of your request.
I double checked with the expected HTTP format, and there is indeed an issue in your response.
HTTP/ 1.1 There is an extra space after the /
\r\n Content-Length: : There is an extra space Before the Content
When I changed your output into: HTTP/1.1 200 OK\r\nContent-Type: type/html\r\nConnection: Closed\r\nContent-Length:
it worked perfectly fine :)
I close this issue, but feel free to re-open it if necessary :)
I am trying to serve up some html content to a browser over a tacopie server. This was my message handler - where I tried both sync and async writes and trying to close the connection when done. Neither works, maybe because I dont understand how the write/disconnect works. Any ideas? thank you!
The text was updated successfully, but these errors were encountered: