C
chrisrichardson
Guest
Thanks Peter, will check this out. In the mean time I put this together based on some examples on here and elsewhere. This has got me going for now (I didn't want to go down to socket route!) using System.*. def var HttpClient as class System.Net.WebClient. def var webResponse as longchar no-undo. fix-codepage (webResponse) = "UTF-8". def var appKey as char no-undo initial "MyAppKey". HttpClient = new System.Net.WebClient(). HttpClient
roxy:Credentials = System.Net.CredentialCache
efaultNetworkCredentials. HttpClient:Headers:Add("key",'"' + appKey + '"' ). webResponse = HttpClient
ownloadString("http://api.worldbank.org/countries?format=json"). HttpClient
ispose(). delete object HttpClient. message string(webResponse) view-as alert-box.
Continue reading...
Continue reading...