Login  
Search All Forums
Dart Home | PowerTCP Web Enterprise for ActiveX | Custom Development Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web Enterprise for ActiveX
Topic: What is a correct method to clear WebASP->Request ? (+)
Rio

From: Moscow, Russia
Posts: 22
Member Since: 11/12/01
posted June 24, 2002 4:56 AM

1) Before POST
 WebASP->Request->Content = (WideString)"";

2) After POST
 WebASP->Request->Body->Clear();

In the first way i have some memory leak,
in the second way i have strange effect when i do
next requests sequence
  www..../cgi.exe?function=viewall    
  www..../cgi.exe?function=viewall&name=test
 first request return good response, but second
 stopped immediatly (http 200) and return nothing
 
Thanx
Jon Belanger



From: Rome, NY USA
Posts: 310
Member Since: 06/10/02
posted June 24, 2002 10:36 AM

Hi,

  In our VC++ sample for the WebASP control we are clearing the content this way...

  pWebASP->GetRequest()->Content = _bstr_t("");

  You shouldn't have to clear the Body.

J. Belanger
Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX