This simple example shows how to download a file from the internet to your device.
You also might be interested in the Webprefetch File by File solution.
This example shows how to download a file from a password protected area to your device. I prepared this webpage
http://restricted.puravidaapps.com using basic HTTP authentication, which means,
you can access this area only after login with username and password. Try it with username=appinventor and password=appinventor.
To be able to do the authentication with App Inventor, we have to add an Authentication header.
The Authorization header is constructed as follows (source: Wikipedia):
To make it as simple as possible, I just Base64 encoded the username:password string appinventor:appinventor using
this page which results in YXBwaW52ZW50b3I6YXBwaW52ZW50b3I=
and put that hardcoded into the header. That's all.
I can help you: for one hour I charge 25 USD.
Please contact me at info [at] puravidaapps [dot] com for details!
For questions about App Inventor, please use the App Inventor forum. Thank you.
Developing and maintaining snippets, tutorials and extensions for App Inventor takes a lot of time.
I hope it saved some of your time. If yes, then you might consider to donate a small amount!
or donate some mBTC to Address:
Thank you! Taifun
This work by Pura Vida Apps is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License
with attribution (name=Pura Vida Apps and link to the source site) required.