Login  
Search All Forums
Dart Home | PowerTCP Web for ActiveX | Custom Development Reply | PowerTCP Web for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web for ActiveX
Topic: How the Web Tool connects and disconnects with servers
jdalrymple

From: Snoqualmie, WA USA
Posts: 20
Member Since: 11/14/00
posted June 15, 2006 2:06 PM

In my VBA app, I do a simple Get command with the web control:

=====================================
axHttp.Object.Url = strUrl

' --- Perform get command
axHttp.Object.Get strResult, , strLogin, strPassword
=======================================


After this is done, the function is exited and other procs are run, which may take up to 30 minutes or more - the axHttp object is not set to nothing. How can I specifically log off of this server? Or is that not required? The reason I ask is that the server recently shortened the time they allow connections to be open to 15 minutes and we are now occasionaly getting 12031 errors. I know the Gets don't take 15 minutes, they probably only take a few seconds, but I'm wondering if maybe, the connection is hanging around even after this function is exited because we never specifically log off or destroy the object (don't really create an object - just reference the control directly). I'm used to your FTP and SMTP tools which have specfic log off methods. Is there something that I am doing wrong?

Thanks for the help! I own the Web, Mail and FTP tools and think they are excellent. Keep up the good work!
Raj

From: Rome, NY, USA
Posts: 389
Member Since: 02/01/06
posted June 16, 2006 10:32 AM

Hi Jim,

The server does not seem to be closing the connection after the data transfer. You might want to explicitly inform the HTTP Server to close the connection by putting "connection: close" in request header.
Here is a simple code snippet:

 Dim reqHeaders As New DartStrings
 reqHeaders.Add "Connection: close"
 Http1.Url = "http://www.dart.com/PostSample.asp"
 Http1.Post postString, reqHeaders, result, respHeaders

I hope this helps.
-Raj
jdalrymple

From: Snoqualmie, WA USA
Posts: 20
Member Since: 11/14/00
posted June 16, 2006 2:30 PM

Thanks Raj. - Jim
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX