RE: HTTP Question

Hi again,

If you've already done so ;-), please ignore my previous message.  I had
made a mistake in constructing my request header.

Allen C.

> -----Original Message-----
> From: www-lib-request@w3.org 
> [mailto:www-lib-request@w3.org]On Behalf Of
> Allen Comer
> Sent: Tuesday, July 20, 1999 4:49 PM
> To: 'www-lib@w3.org'
> Subject: HTTP Question
> 
> 
> Hi all,
> 
> I'm using libwww to in an application that involves pulling multiple
> pages from a single site.  If I use the HTTP 1.1 default, the server
> responds in the following manner:
> 
> HTTP/1.1 200 OK
> Server: Microsoft-IIS/4.0
> Date: Tue, 20 Jul 1999 19:27:52 GMT
> Connection: close
> HTTP/1.0 200 OK
> Content-type: text/html
> Date: Tue, 20 Jul 1999 19:27:52 GMT
> Expires: Tue, 20 Jul 1999 19:27:52 GMT
> Cache-control: private
> Set-Cookie:
> User1=2583D742DDAC83B91CEB4C53A66AAE414DC1BC4554E98B5DF4D408; path=/;
> Set-Cookie: User2=3515602B767FD9DD; path=/;
> 
> This seems strange since there are two "HTTP/1.x 200 OK" header lines
> and two "Date:" header lines within the same response.  THe problem in
> the above situation is that the cookies expire at the end of 
> the session
> and the server closing the connection renders them useless for a
> subsequent page grab.  So, I then set my application to use 
> HTTP 1.0 the
> server sends the same response but without the "Connection: close"
> header.  My application, however, hangs after the first request.  I,
> more or less, do the following:
> 
> issue request 1
> start event loop
> get cookies
> delete request 1
> stop event loop
> issue request 2 with cookies
> start new event loop
>  
> However, I can't get to the second request.  So, regardless of which
> HTTP version I use, I'm stuck.  I explicitly send a "Keep-Alive" in my
> request header under 1.1.  Anyone have  ideas?  
> 
> Thanks,
> 
> allen
> 
> 
> 

Received on Wednesday, 21 July 1999 09:43:38 UTC