Run http.request in the background, so that it doesn't pause app?

I want to connect to a web news feed via http.request, but I don’t want the rest of my program (which shows animations) to stop while the file is being downloaded. It should basically run quietly in the background, and if there is no internet connection or no news update it should simply not do anything later on. How can I do this? Currently my program freezes until the download is done…

Thanks!! [import]uid: 10284 topic_id: 5483 reply_id: 305483[/import]

Hmm, looks like I’ve not been the first to ask/ request this…

Forum thread: http://developer.anscamobile.com/forum/2010/06/12/async-httprequest
Suggested workaround: http://developer.anscamobile.com/code/corona-async-http
Perhaps relevant in terms of workaround: http://www.lua.org/pil/9.4.html

Any further help is still appreciated. [import]uid: 10284 topic_id: 5483 reply_id: 18473[/import]

Build 268 (just released today) has support for asynchronous HTTP requests.

http://developer.anscamobile.com/reference/index/networkrequest

Tim [import]uid: 8196 topic_id: 5483 reply_id: 18590[/import]

Great!! Thanks! [import]uid: 10284 topic_id: 5483 reply_id: 18753[/import]