| Dart Home | PowerTCP Web for ActiveX | Custom Development | Reply | PowerTCP Web for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Web for ActiveX Topic: HTTP State is firing once only |
| Alexandre Archambault From: Montréal, QC Canada Posts: 49 Member Since: 02/27/01 |
posted February 27, 2001 10:18 AM I'm using the HTTP control with a Timeout of 0. When I do a GET the STATE event is only fired once with a state of httpStartingRequest (1) and is not fired again. If i use a Timeout of > 0 then the GET is blocked and everything works fine, but I need to use a Timeout of 0. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 27, 2001 10:22 AM Using the following code: Option Explicit Dim Data As String Private Sub Command1_Click() Http1.Timeout = 0 Http1.Url = "http://www.dart.com" Http1.Get Data End Sub Private Sub Http1_State() Debug.Print "STATE: " + CStr(Http1.State) End Sub I get this as a result: STATE: 1 STATE: 2 STATE: 3 STATE: 4 STATE: 5 STATE: 6 STATE: 7 STATE: 8 STATE: 9 STATE: 8 STATE: 9 STATE: 8 STATE: 9 STATE: 13 STATE: 10 STATE: 11 STATE: 0 Please tell me what is different for you. Thanks, Tony Priest Dart Tech Support |
| Alexandre Archambault From: Montréal, QC Canada Posts: 49 Member Since: 02/27/01 |
posted February 27, 2001 11:05 AM OK the problem is not with the HTTP Control! I did the exact same code from your example in a little VB project and it worked! The problem lies in that I'm incorporating the HTTP control within a DLL and when the GET is performed, the State event is fired once (httpStartingRequest) and when the control is passed back to the program the HTTP control in the DLL doesn't fire the State event anymore (it's like the Control doesn't exist anymore even though I have a reference to it in an object variable that is still exists). Thanks for your help, I guess I need to look into this a little more. Alex |
| Reply | PowerTCP Web for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|