/***************************************************************************\ ** ** ** htdump ** ** ** ** Program to make http requests and redirect, save or pipe the output. ** ** Ideal for automation and debugging. ** ** ** ** ** ** By Ren Hoek (ren@arak.cs.hro.nl) Under Artistic License, 2000 ** ** ** \***************************************************************************/ /***************************************************************************/ /** Includes **/ #include "global.h" /***************************************************************************\ ** ** ** Read_Headers() ** ** ** ** A function to parse the headers in front of the HTML data. ** ** Activly looks for the errorcode and content-length. ** ** ** ** Returns 1 if still parsing headers but needs more data to be read. ** ** ** \***************************************************************************/ UINT Read_Headers(void) { UINT t; UCHAR line[255]; for(;;) { for(t=0; t