network.download Authentication

Hi, 

I have an Apache with login/password authentication and I want to download files from it.

I actually use network.download to request the files ( without authentication), but is very important for the app to have this login/password authentication.

Is there a solution? Does corona have authentication?

Hi @renato7,

I checked with the engineers, and they report that there are 2 ways you may accomplish this:

  1. In the URL itself, for example:

http://user:password@secreturl.com/somefile.png

  1. Manually filling the ‘Authorization’ header (in the case where the password has a @ in it):

http://en.wikipedia.org/wiki/Basic_access_authentication

Hope this helps,

Brent

Yes ! 

Thanks for the help ! After a night trying to make this , I found the first solution proposed  ( it was in front of me all the time … ) 

Thanks again !

Hi @renato7,

I checked with the engineers, and they report that there are 2 ways you may accomplish this:

  1. In the URL itself, for example:

http://user:password@secreturl.com/somefile.png

  1. Manually filling the ‘Authorization’ header (in the case where the password has a @ in it):

http://en.wikipedia.org/wiki/Basic_access_authentication

Hope this helps,

Brent

Yes ! 

Thanks for the help ! After a night trying to make this , I found the first solution proposed  ( it was in front of me all the time … ) 

Thanks again !