On Mon, May  2, 2005 at 18:04:44 -0500 (-0500), Branden Robinson wrote:
> Clint Adams tells me this is because html2text doesn't support named vhosts.
> 
> He also says html2text needs to generate HTTP 1.1 GET requests.

This reply is partly a "memo to self".  There are several things that need
doing for this:

a) change the "GET ...\r\n" request into
   "GET ... HTTP/1.1\r\nHost: ...\r\n\r\n"
b) bin (or better, check) the headers which will now be returned
c) as part of HTTP/1.1 you _must_ implement chunked message decoding.
   As far as the internals of html2text go this ain't easy, IIRC it reads a
   file descriptor (which maybe from a socket - i.e. website, or a real file).

Adrian
-- 
Email: [EMAIL PROTECTED]
Windows NT - Unix in beta-testing. GPG/PGP keys available on public key servers
Debian GNU/Linux  -*-  By professionals for professionals  -*-  www.debian.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to