You may need to yeild control so that other messages may be processed. I would suggest that your Still Executing loop look something like the following:
Do While inetFTPControl.StillExecuting
DoEvents
Loop
You should also have a StateChanged event handler which would be something like the following:
Private Sub inetFTPControl_StateChanged(ByVal rInt_FTPState As Integer)
Case icNone
Case icResolvingHost
Case icHostResolved
Case icConnecting
Case icConnected
Case icRequesting
Case icRequestSent
Case icReceivingResponse
Case icResponseReceived
Case icDisconnecting
Case icDisconnected
End Select
End Sub Good Luck
-------------- As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
Hi,
Thanks for your answer.
I tried :
"[...] inetFTPControl.StillExecuting [...]"
The problem is that I want to open an URL with the POST method. For that, I think the only way is :
inetHTTPControl.Execute
But when I do that, nothing happens and the request seems to keep executing for ever. In fact, the URL I call is on a server with 2 IP adresses (and 2 networks devices). When I try to Execute the URL on the local one, it works, but when I try to call it on the world wide one, it fails (whereas OpenURL command, that's to say GET method, works in both cases !)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.