Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XML times out
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
Divers
Thread ID:
01541972
Message ID:
01541980
Vues:
37
This message has been marked as a message which has helped to the initial question of the thread.
>I am trying to retrieve data from Citylink Couriers web site - most of the time the information is returned quickly but every now and then the objHTTP.Send() times out with an error
>
>Any idea of the best way to give the system more time or to force a repeat search on the error
>
>select logix
>scan
>partaa=ALLTRIM(logix.cityref)
>parta="http://www.city-link.co.uk/pod/xmltracking.php?jobno="
>partb="&custno=318951&x1=AAA11AAA07KRFAHWS7654321AAAAAAAAAAAA="
>url=parta+partaa+partb
>
>url=STRTRAN(url,'"',"")
>url=ALLTRIM(url)
>
>objHTTP = CreateObject("MSXML2.XMLHTTP.4.0")
>objHTTP.Open("GET", url,.f.)
>objHTTP.Send()
>Insert into WebPage (myMails) VALUES (objHTTP.ResponseText)
>objHTTP = null
>RELEASE objHTTP
>etc
>
>endscan

Nothing to do with the question but if, as it appears, you are using objHTTP multiple times is it not possible to create it just once and, rather than releasing it, close and re-open to change the URL ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform