Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get local time in other countries
Message
 
To
11/07/2006 12:36:38
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01134752
Message ID:
01135541
Views:
29
Good catch Tracy.

>I ran into the same problem until I added the .setRequestHeader:
>
>CREATE CURSOR WebPage (myMails m)
>url="http://www.timeanddate.com/worldclock/full.html"
>objHTTP = CreateObject("MSXML2.XMLHTTP.4.0")
>objHTTP.Open("GET", url)
>objHTTP.setRequestHeader("Content-type", "text/xml")
>objHTTP.Send()
>lncount = 0
>DO WHILE objHTTP.readystate <> 4 .and. lncount < 1000
>	lncount = lncount + 1
>ENDDO
>IF objHttp.status==200 .and. objHTTP.readystate = 4
>	Insert into WebPage (myMails) VALUES (objHTTP.ResponseText)
>ENDIF
>objHTTP = null
>RELEASE objHTTP
>sele webpage
>browse
>USE IN webpage
>
Previous
Reply
Map
View

Click here to load this message in the networking platform