Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class def. WinHTTP.WinHTTPRequest.5 is not found on XP
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01323708
Message ID:
01324171
Views:
26
This message has been marked as a message which has helped to the initial question of the thread.
The following code works for me
lnLoadTimeout = 20		&& seconds
loIE = Createobject("internetexplorer.application")
*loIE.Visible = .T.
loIE.Navigate("http://whatismyip.com/automation/n09230945.asp")
* Wait for load to complete
lnSeconds = SECONDS()
DO WHILE (loIE.Busy OR loIE.ReadyState <> 4) ;
		AND (SECONDS() - lnSeconds) < lnLoadTimeout
	DOEVENTS
ENDDO

lcIP = "Unknown"
IF TYPE("loIE.Document") = "O"
	lcIP = loIE.Document.body.innerText
ENDIF

? lcIP 
loIE.Quit()
>I tried the following code but then no IP is returned. Please advise.
>
<snip>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform