lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lynx-dev] explicit "Connection: close"


From: Ralph Babel
Subject: [Lynx-dev] explicit "Connection: close"
Date: Mon, 5 Sep 2011 05:31:45 +0200 (CEST)

Some web forums (vBulletin-based, it seems) assume
"Connection: keep-alive" even for Lynx's HTTP/1.0 requests,
which causes (some of the) page rendering to be deferred
until the connection is eventually closed by the server.

Sending an explicit "Connection: close" avoids the problem:

  HTBprintf(&command, "Connection: close%c%c", CR, LF);

... somewhere in HTLoadHTTP().

(Alternatively, one could make use of the "Content-Length:"
header, which is how wget avoids the termination delay.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]