Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get local time in other countries
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01134752
Message ID:
01135402
Vues:
27
This message has been marked as a message which has helped to the initial question of the thread.
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
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform