I fixed the issue by rolling back to the last release build.
I ditched all my code and ran a sample like the following to confirm. Now I’ve got to find out which daily build broke the code as there’s a feature that also need that is missing from the release build.
Well at least it is working, the error was when reading the response on ( event.isError ) java.lang.DOUBLE
here is some test code that shows the issue on the daily build (not sure which build after the release build)
Joshua I appreciate your help before.
local asynch_http = require(“async_http”)
local http = require(“socket.http”)
left = display.contentWidth*0.1
top = display.contentHeight*0.1
t_width = display.contentWidth*0.8
t_height = display.contentHeight*0.8
barText = native.newTextBox( left, top, t_width, t_height )
barText.text = “WAITING”
barText:setTextColor(0,0,0)
local function networkListener( event )
if ( event.isError ) then
print( “Network error!”)
response = ( "ERROR: " … event.response )
else
response = ( "RESPONSE: " … event.response )
end
print (response)
barText.text = response
end
local function testWebservice()
headers = {}
body = “sample post body2”
headers[“POST”] ="/sectv.asmx HTTP/1.1"
headers[“Content-Type”] = “text/xml; charset=utf-8”
headers[“Content-Length”] = string.len(body)
headers[“Date”] = os.date("!%a, %d %b %Y %H:%M:%S GMT")
headers[“Accept”] ="*/*" —“text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8”
headers[“Accept-Language”] =“en-GB,en-US” --;q=0.8,en;q=0.6"
headers[“Accept-Encoding”] = “gzip,deflate,sdch”
headers[“Connection”] = “keep-alive”
headers[“Cache-Control”] = “max-age=0”
headers[“User-Agent”] =“Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML,like Gecko) Chrome/20.0.1132.27 Safari/536.11”
params = {} --header and body are held in this table
params.headers = headers --variables go into the table
params.body = body
network.request( “http://posttestserver.com/post.php?dir=mydir”, “POST”, networkListener,params )
end
testWebservice()
[import]uid: 137150 topic_id: 27244 reply_id: 111548[/import]