Im looking to use load url instead of get to save long pauses in my app.
I have the code
Code: Select all
on validateAPI
  put "https://www.sample.com/v1/accounts/" into tURL
  load url tUrl with message "validationLoaded"
end validateAPI
on validationLoaded pURL, pURLStatus
   if pURLStatus is "cached" then
      ## LiveCode has cached URL content. Accessing the url uses
      ## the cache. 
      answer  "Result" && pURL
      		
      ## Remove URL from cache if you are all done with it.
      unload url pURL
   else
      put libURLErrorData(pURL) into tError
     answer "Error" && tError
   end if
   
end validationLoaded
Thanks