Hi All
I need to send a request via HTTP - AppGameKit - SetHTTPHost / the provider give me
I have tried a few options, but keep getting a blank response
I can run the string from the browser and it return JSON output, but can't get a response in AGK
(I know this specific string send is working)
//tried this
con = CreateHTTPConnection()
SetHTTPHost(con , "https://mywebsite.cn/api/v1/students?auth_token=123123123123123&since_id=502864s" ,1)
SendHTTPRequestASync(con , "")
// and this
SetHTTPHost(con , "https://mywebsite.cn/api/v1/students",1)
SendHTTPRequestASync(con , "auth_token=123123123123123&since_id=502864s")
time0 = GetMilliseconds()
repeat
timeNow = GetMilliseconds()
timeElapsed = (timeNow - time0)
ready = GetHTTPResponseReady(con)
if ready <> 0 or timeElapsed > 60000 //set a timeout limit
done = 1
endif
Sync()
until done = 1
response$ = GetHTTPResponse(con)
message(response$)
The output in the Browser will look like the following image
Thanks