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

Help with HTLoadAbsolute...

From: Marco Ariano <marco.ariano@pipercreek.com>
Date: Wed, 07 Jul 1999 20:24:34 -0600
Message-ID: <37840BE2.96398518@pipercreek.com>
To: www-lib@w3.org
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.

For what it's worth, here's the bulk of the code.  It's a modified
version of the code in the secureget example.  I'm calling it from a
GUI-based windows app for now.

    int		        status = 0;	
    char *              getme = NULL;
    HTRequest *         request = NULL;

    /* Initiate W3C Reference Library with a client profile */
    HTProfile_newPreemptiveClient( "Secure_Client", "1.0" );

    /* And the traces... */

    /* Register SSL stuff for handling ssl access */

    /* Need our own trace and print functions */

    /* Set the timeout for long we are going to wait for a response */

    getme = "https://<some URL requiring SSL>";

    request = HTRequest_new();

    /* Start the load */
    status = HTLoadAbsolute (getme, request);           // This doesn't
//  status = HTLoadToFile(getme, request, "get.out");   // This works


    /* Close down SSL */

    /* Delete our profile */

    return 0;

Thanks again for any help on this.

Received on Wednesday, 7 July 1999 22:25:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:51 UTC