<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6617.47">
<TITLE>check_http and HTTP 1.1</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>
<BR>
<BR>
<P><FONT SIZE=2 FACE="Arial">I have a problem with check_http and a web server which is HTTP 1.1.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Currently the check_http reads responses from the web server until it meets the end-of-file marker (read function returns 0). As far as I understand sockets programming you will only ever encounter the end-of-file marker on a socket if the other party closes the socket.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">The web server I'm testing against (an embedded thing inside an an app, not really a full blown web server) seems keep the socket open which again means that check_http never sees the end-of-file marker and eventually times out instead.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">I'm not really a sockets nor a HTTP expert but it seems to me that check_http cannot make the assumption that it can simply read from socket until end-of-file, at least not for HTTP 1.1 which have lots of reasons to keep the socket open.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Any sockets or HTTP experts out there?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Thanks.</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">Lars</FONT>
</P>
</BODY>
</HTML>