W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2001

Delay between header and body in POST

From: Sean Kelly <kelly@ad1440.net>
Date: Wed, 23 May 2001 15:19:47 -0700
Message-ID: <024e01c0e3d6$7a030a60$6a1010ac@rosetta.zon>
To: <www-lib@w3.org>
Hello again:

When POSTing data to a server, there's a very palpable
delay (2 seconds) between transmission of the request
headers and transmission of the POSTed data body.

Anyone have ideas what I'm doing wrong that's causing
that?

My calls, in order, are:

HTLibInit("retrieveProduct()", "1.0");
HTLib_setSecure(YES);
HTLib_setSecure(YES);
HTTransportInit();
HTProtocolInit();
HTMIMEInit();
converters = HTList_new();
HTConverterInit(converters);
HTFormat_setConversion(converters);
presenters = HTList_new();
HTPresenterInit(presenters);
transferEncoders = HTList_new();
HTTransferEncoderInit(transferEncoders);
HTFormat_setTransferCoding(transferEncoders);
contentEncoders = HTList_new();
HTContentEncoderInit(contentEncoders);
HTNetInit();
HTAAInit();
HTEventInit();
HTNet_addAfter(responseArrived, NULL, NULL, HT_ALL, HT_FILTER_LAST);
HTHost_setEventTimeout(10000);
HTRequest_setOutputFormat(request, HTAtom_for("text/xml"));
anchor = HTAnchor_findAddress(uri);
HTAnchor_setFormat((HTParentAnchor*) anchor, WWW_FORM);
result = HTPostFormAnchorToChunk(params, anchor, request);
HTEventList_newLoop();

And the responseArrived() function merely calls
HTEventList_stopLoop().

Thanks for your assistance,
--Sean
Received on Wednesday, 23 May 2001 18:17:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:39 GMT