I am calling a HTTP request but I am getting a cached value returned.
Clearing the cache solves the problem but how do I force the true value to be returned.
I am pretty sure I managed to do this previously by adding the random number to the URL.
Keith
Clearing the cache solves the problem but how do I force the true value to be returned.
I am pretty sure I managed to do this previously by adding the random number to the URL.
Code:
DRIVELLOC="[URL unfurl="true"]http://www.mysite.co.uk/cgi-bin/addget.pl?call=CheckClick&ran="+str(rand())[/URL]
*!* HTTP REQUEST
LOREQUEST=''
LCHTTP=''
LOREQUEST = CREATEOBJECT('MSXML2.XMLHTTP.6.0')
LOREQUEST.OPEN("GET", DRIVELLOC, .T.)
LOREQUEST.SEND(.NULL.)
DO WHILE LOREQUEST.READYSTATE # 4
DOEVENTS
ENDDO
LCHTTP = LOREQUEST.RESPONSETEXT
release LOREQUEST
wait window LCHTTP nowait
Keith