W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1999

Re: Help with HTLoadAbsolute...

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Sat, 10 Jul 1999 15:14:39 -0400
To: www-lib@w3.org
Message-ID: <37879B9F.D307CCEE@w3.org>
To: Marco Ariano <marco.ariano@pipercreek.com>


Marco Ariano wrote:
> 
> I'm building a GUI-less client using the newPreemptiveClient.  The
> client needs to talk SSL.  I have code that works if I use HTLoadToFile
> to fetch the URL but that breaks if I use HTLoadAbsolute instead.  Given
> that HTLoadToFile ends up calling HTLoadAbsolute, I'm a bit confused.
> 
> What HTLoadAbsolute seems to be doing is reading one chunk and then
> quitting.  (I'm talking to a 1.1 server over SSL)  Does anyone have any
> suggestions as to where I should be looking for the problem?  I have a
> sneaking suspicion it has to do with the stream stack that's setup but
> since I really don't know what's going on that may be a red herring.
> 
> As usual, I have to say that I still haven't developed enough of a
> mental model of the mechanics to really understand things.
> 

I think the problem may be that you are using preemptive sockets - as
far as I recall, SSL can go back and forth in some states and may
require that you use an eventloop as shown in the secureget sample app.

Henrik
Received on Saturday, 10 July 1999 15:14:46 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:16 UTC