W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2000

Re: Please Help on Synchronous Post...

From: <jose.kahan@inrialpes.fr>
Date: Fri, 17 Mar 2000 12:23:38 +0100 (MET)
Message-Id: <200003171123.MAA26805@tuvalu.inrialpes.fr>
To: Cal Caldwell <Caldwell@kfalls.net>
CC: www-lib@w3.org
Cal,

Have you tried returning from your terminate_handler with HT_ERROR?

Also, I'm not sure for the sync request that it's ok to make the
HTRequest_delete in that handler. I'd do it after the return from the 
Load.. call.

-Jose

In our previous episode, Cal Caldwell said:
> 
> /*  Here is the terminate handler */
>  
> static int CHttpPost::terminate_handler (HTRequest * request, HTResponse * response, void * param, int status) 
> {
>  USES_CONVERSION;
>  CComBSTR str_response;
>  CHttpPost* php_this;
>  
>  
>  php_this = (CHttpPost*)param;
> 
>  str_response = HTChunk_data(php_this->g_phc_responseData);
> 
>  FILE* f= fopen("C:\\log.txt", "a+");
>  fprintf(f, "%s\n", W2A(str_response));
>  fclose(f); 
>  
>     HTRequest_delete(request);
> 
>  return 1;
> }
> 
> 
Received on Friday, 17 March 2000 06:24:16 GMT

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