Dart Home | PowerTCP Web Enterprise for ActiveX | Custom Development | Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums |
Author | Forum: PowerTCP Web Enterprise for ActiveX Topic: HTTP Post sometimes fails to complete |
radman From: Alpharetta, GA USA Posts: 9 Member Since: 05/08/03 |
posted February 12, 2004 6:07 PM I am uploading encrypted files to a server. I am getting a random occurrence in which the server never responds. After close examination of the data received from the server. I see that the entire file is sent but no closing content boundary is found including closing boundary. Any ideas on why this is occurring. Thanks, Bill |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 12, 2004 8:00 PM I am having trouble understanding this description. First you state "the server never responds". Then you say "After close examination of the data received from the server". This does not make sense. Was there an error raised by the Get method? |
radman From: Alpharetta, GA USA Posts: 9 Member Since: 05/08/03 |
posted February 12, 2004 11:07 PM What I mean is I have a monitor on the server. The monitor shows me the complete raw request made. This log shows that the boundary is not present at the end. If I compare this log to one generated from using an HTML Post of the same file, the only thing that is missing is the ending boundary. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 12, 2004 11:11 PM What is the result of the call to POST? Is an error raised? If not was there any data in the response? |
radman From: Alpharetta, GA USA Posts: 9 Member Since: 05/08/03 |
posted February 13, 2004 7:36 AM Nothing gets returned. The component is set to a timeout of 0 (which should put it in async mode) then I am waiting in a loop that waits for a flag to be changed (it waits 30 seconds). The flag it is waiting for is changed in the Progress event of the dart component if the dart status changes to OK. This is not occurring with a specific file. No error is occuring. Let me just say, I don't think it is in the way the code is written or the method that is being used. I have several thousand files transmitted a day successfully with the mechanism. On the failures, the server monitor shows that the entire thing came in except for the closing boundary. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 13, 2004 8:44 AM It sounds like the server is not sending the data. If you had timeout greater than 0 you would probably get a timeout error. Right now you are probably getting an error event. By the way, do you realize that using timeout = 0 and then waiting for a flag to be set that you are doing the exact same thing as having timeout = 30 seconds. Is there some reason you do it that way? |
radman From: Alpharetta, GA USA Posts: 9 Member Since: 05/08/03 |
posted February 13, 2004 8:55 AM Thank you for the timeout info. But I don't think you are understanding what I am saying. The server is not responding because it is waiting for the request to complete. It uses the MIME boundaries to know when it is complete. The Dart component is not sending the ending boundary on specific file transfers. That is the problem. It has nothing to do with the server. Why is the component not completing the request? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 13, 2004 8:58 AM Please tell me exactly how to reproduce this problem. If necessary, send a simple test app to support@dart.com |
radman From: Alpharetta, GA USA Posts: 9 Member Since: 05/08/03 |
posted February 13, 2004 9:11 AM I can send you the exact requests received from the server if you would like. I can also send you one of the files that are causing the problem. I will have to build an app that uses the functionality. I am not at work presently and will have remote access to my machine shortly. Let me know which pieces you are interested in and I will send those to you. Do you have an email address I should use? It acts like maybe the file contents are throwing off the component (invalid chars or something like that). This is why it happens randomly but when it happens that specific file always fails. Thanks |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 13, 2004 9:19 AM I think it would be best if I wait for your test app. Please send it to support@dart.com. |
radman From: Alpharetta, GA USA Posts: 9 Member Since: 05/08/03 |
posted February 13, 2004 4:55 PM I have emailed you the test app. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 13, 2004 5:14 PM Thanks. We'll continue this via email. I just sent a reply. |
Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums |
This site is powered by
![]() |