http.request

Hi all,
if the http.request works with wifi all works fine, if it works in grps mode and no connection is active I have an error and nothing works. If there is a connection active (for example mail) all works fine also in gprs mode.

There is a solution that i don’t know?

Thanks
Alessandro [import]uid: 2230 topic_id: 505 reply_id: 300505[/import]

can you provide sample code that is giving you problem?

Carlos [import]uid: 24 topic_id: 505 reply_id: 994[/import]

Of course.
This happens only on the device, in the simulator always all ok

function init()
native.setActivityIndicator( true )
b, c, h = http.request( “http://www.xxx.net/file.xml” )
if (c == 200) then

else
local splashscreen = display.newImage( “splashscreen.png” )
myText = display.newText( “No internet connection”, 10, 420, “Helvetica-Bold”, 18 )
myText:setTextColor( 255, 255, 255 )
end
native.setActivityIndicator( false )
end

init() [import]uid: 2230 topic_id: 505 reply_id: 996[/import]

Confirm the problem.
I have to run any application that requires internet connection before that I could run any corona application that uses lua http socket (when there is not wifi connection). [import]uid: 2735 topic_id: 505 reply_id: 1297[/import]

Logged as a bug, testing now… [import]uid: 3007 topic_id: 505 reply_id: 1335[/import]

(Logged as bug #138) [import]uid: 3 topic_id: 505 reply_id: 2044[/import]