From: sirjofri <sirjofri+ml-9front@sirjofri.de>
To: 9front@9front.org
Subject: Re: [9front] serving html sites with announce, listen and accept (dial(2))
Date: Mon, 9 Sep 2024 10:12:32 +0200 (GMT+02:00) [thread overview]
Message-ID: <5a5f00b5-ea70-43f4-a8d4-d0d918f629fc@sirjofri.de> (raw)
In-Reply-To: <E2472B71-887B-497E-A0F3-CC5362C19C83@firstpost.pub>
Hi,
09.09.2024 09:29:56 sahu@firstpost.pub:
> Thank you very much! In netcat I’m getting the full response now.
>
> Unfortunately, there is still no response in my browser. If anyone has any hints about this, I would be very happy to hear them. Until then, I will try to understand how a response is composed with the help of tcp80.c from Igor.
The Content-Length in your header is set to 8, which only covers the first tag, which is invisible. As far as I understand http, you have two options:
1) give it a proper value. This means that the client can reuse the connection by sending another request after the full response is received (HTTP/1.1).
2) remove the field completely and explicitly close the connection (e.g. by ending your program).
Good luck
sirjofri
next prev parent reply other threads:[~2024-09-09 8:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-09 5:57 sahu
2024-09-09 6:10 ` Alex Musolino
2024-09-09 7:28 ` sahu
2024-09-09 8:12 ` sirjofri [this message]
2024-09-09 9:09 ` sahu
2024-09-09 10:10 ` sirjofri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5a5f00b5-ea70-43f4-a8d4-d0d918f629fc@sirjofri.de \
--to=sirjofri+ml-9front@sirjofri.de \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).