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: No Data after successful Asynchronous GetEx
PeterD

From: Australia
Posts: 3
Member Since: 09/03/14
posted September 3, 2014 11:50 PM

I am using a GetEx with Timeout = 0, to download an file (gzip encoded) from a server. 

On my development PC, this works fine, but on a client's machine; sometimes (often) the request completes with a 200 status, the Content-Length header > 0, but the byte Array which I passed into the GetEx command to receive the data is empty (unitialized).

I am getting this error in the .State event where I am looking for state = httpResponseCompleted (and Status = 200).


Nick B (Admin)

From: Utica, NY USA
Posts: 572
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted September 4, 2014 12:03 PM

Hello,

We have not encountered this issue before. Does the issue still occur if you implement your application synchronously?

What are the differences between your client's machine and your development machine? OS, configuration, hardware, network, proxy?

If you examine your network traffic with an application such as Wireshark, do you see the file's data coming in?
PeterD

From: Australia
Posts: 3
Member Since: 09/03/14
posted September 4, 2014 5:17 PM

It seems that if I waited for state = httpCompleted, rather than impatiently expect it to be there when state = httpResponseCompleted, it works.
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX