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: WebASP non-blocking GET completed?
User648

Posts: 13
Member Since: 06/05/01
posted June 5, 2001 9:45 AM

How do you know when a WebASP non-blocking GET has completed?

So far it looks like you must check the progress event to see if:
 Method = webGet And Status = webOk

Is that correct? I haven't been able to find anything in the help that says how to do this.

If that will never happen will an error be thrown in the error event?

What other events/properties do I need to check to know if the GET has completed successfully or unsuccessfully?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted June 5, 2001 9:57 AM


That's correct. Look for the method to have a status of OK.

One thing I have found to be very useful when learning a new tool is to put debug statements in the progress events so that you can see what happens. Something like:

Debug.Print "Progress Event: "
Debug.Print "Method: ", Method
Debug.Print "Status: ", Status
Debug.Print "Count: ", Count
Debug.Print "Size: ", Size


Hope this helps!

Tony Priest
Dart Tech Support

User648

Posts: 13
Member Since: 06/05/01
posted June 5, 2001 10:16 AM

I have been using debug statements in the events to monitor the state of the download. However, I have had downloads complete without an OK status and no error events. I have also received multiple OK status during a download (I think the URL was redirecting to another URL). This makes it very confusing to tell if you have downloaded the file or not.

Any ideas?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted June 5, 2001 2:31 PM


You have to look at both the status and the method. Can you give me an example of a url that causes multiple OK status?

Thanks,

Tony
bigmannz

From: Redmond, Venezuela
Posts: 4
Member Since: 10/14/02
posted October 15, 2002 6:51 PM

I have the same issue, and can email you code to demonstrate it. It writes an entry to the log each time the progress event fires;

Note the FINISHED? happens twice at the end.

H1 progress event firing, status= 2 method= 1 count= 93 size= 93 Body.size= 0
H1 progress event firing, status= 3 method= 1 count= 335 size= 335 Body.size= 0
H1 progress event firing, status= 3 method= 1 count= 2864 size= 2864 Body.size= 0
H1 progress event firing, status= 3 method= 1 count= 4296 size= 4296 Body.size= 2529
H1 progress event firing, status= 3 method= 1 count= 5728 size= 5728 Body.size= 3961
H1 progress event firing, status= 3 method= 1 count= 7160 size= 7160 Body.size= 5393
H1 progress event firing, status= 3 method= 1 count= 8592 size= 8592 Body.size= 6825
H1 progress event firing, status= 3 method= 1 count= 10024 size= 10024 Body.size= 8257
H1 progress event firing, status= 3 method= 1 count= 11456 size= 11456 Body.size= 9689
H1 progress event firing, status= 3 method= 1 count= 12888 size= 12888 Body.size= 11121
H1 progress event firing, status= 3 method= 1 count= 14320 size= 14320 Body.size= 12553
H1 progress event firing, status= 3 method= 1 count= 15752 size= 15752 Body.size= 13985
H1 progress event firing, status= 3 method= 1 count= 17184 size= 17184 Body.size= 15417
H1 progress event firing, status= 3 method= 1 count= 19648 size= 19648 Body.size= 16849
H1 progress event firing, status= 3 method= 1 count= 21080 size= 21080 Body.size= 19313
H1 progress event firing, status= 3 method= 1 count= 22512 size= 22512 Body.size= 20745
H1 progress event firing, status= 3 method= 1 count= 23744 size= 23744 Body.size= 22177
H1 progress event firing, status= 3 method= 1 count= 25297 size= 25297 Body.size= 23409
H1 progress event firing, status= 0 method= 1 count= 0 size= 0 Body.size= 24962
FINISHED? Status = webOK, Server Response= 200 - and ResponseText= OK
H1 progress event firing, status= 0 method= 1 count= 0 size= 0 Body.size= 24962
FINISHED? Status = webOK, Server Response= 200 - and ResponseText= OK

K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted October 17, 2002 9:38 AM

Hi,
I have been able to reproduce this behavior with the Urls you sent to us.
I have issued a request for development to look into why this is happening with these sites.
Thanks for your help in reporting the problem,
-ken
Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX