| Dart Home | PowerTCP Web for ActiveX | Custom Development | Reply | PowerTCP Web for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Web for ActiveX Topic: HTTP Control Get Command Error Check |
| hurdga greg.hurd@rcis.com From: Anoka, MN USA Posts: 2 Member Since: 02/15/05 |
posted February 15, 2005 11:31 AM How do I know if a Get command on the HTTP control was successful? I tried to Get a file from a URL that didnt exist and it still created the local file (although invalid) but I didnt get an error back saying it couldnt find the file. I know the Put command has a result field you can check but I dont see one on the Get command. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 15, 2005 4:43 PM Can you tell me how to duplicate this problem with a simpled code snippet? Or one of our sample apps? |
| hurdga greg.hurd@rcis.com From: Anoka, MN USA Posts: 2 Member Since: 02/15/05 |
posted February 16, 2005 9:21 AM Here is my code: ' Set the properties of the http control With frmHTTP.CIHTTP1 .Url = strRemoteFileURL .Cache = False .Security = mstrSecurity .Timeout = 20000 ' Get the file from the URL and place it into the local file path .Get strLocalFilePath, mstrResponseHeader End With How do I check to see if the Get was successful? I didn't see any checking in the sample apps. If I try to Get a file on the server that doesnt exist it does not produce a run time error and it builds a dummy 4k size file of the file Im trying to get on the client thats not a valid file. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 16, 2005 1:42 PM After the Get completes, check Http.Status and Http.StatusText to determine the code and description returned from the server. If status is 200 it's OK, if not check StatusText for reason. |
| Reply | PowerTCP Web for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|