I have code something like this:
[lua]
local networkCallback = function(event)
print(event.response);
end
local params = {}
params.headers = params.headers or {}
network.request(‘http://feodosian.com/static/json/2.json’..’?ts=’…math.random(1,1999999), ‘GET’, networkCallback, params);
[/lua]
And after several requests (i find no login in this fails frequency) it returns event in callback with isError = false, and status = 200, but empty response, i changed servers (software (nginx/apache) and location), look into server logs and this fail causes again and again, in server logs all looks fine
[text]
ip.ip.ip.ip - - [13/Feb/2013:15:32:23 +0200] “GET /static/json/2.json?ts=743081 HTTP/1.1” 200 689 “-” “My User Agent”
[/text]
it responses to client 689 bytes with 200 code, but in event there are no data. I tested it on HTC Sensation Z710e (Android 2.3.3) and Samsung Galaxy SII (Android 2.3.4). Does anyone have such problems? any ideas about reasons of such behaviour?
Corona Version 2012.894 (2012.8.27) [import]uid: 193963 topic_id: 35876 reply_id: 335876[/import]