Download file from web server

Can I use network.request() to download torrent file and other kinds of files ?

Yeah you can use network.request but corona built a easier way to do this called network.download

http://docs.coronalabs.com/api/library/network/download.html

How to get the file url from the web browser ?

From the web view in corona? If so you would have to create a web listener and keep track of the event.url.

How to run the corona app when click the download link in any web browser in the phone ?

params.response = { filename = ??? , baseDirectory = system.DocumentsDirectory }

How to get the file name and type ?

Yeah you can use network.request but corona built a easier way to do this called network.download

http://docs.coronalabs.com/api/library/network/download.html

How to get the file url from the web browser ?

From the web view in corona? If so you would have to create a web listener and keep track of the event.url.

How to run the corona app when click the download link in any web browser in the phone ?

params.response = { filename = ??? , baseDirectory = system.DocumentsDirectory }

How to get the file name and type ?