Bug Report: Basic Authentication does not work (or at least not on all platforms

588 views
Skip to first unread message

Joseph Parker

unread,
Apr 10, 2016, 7:43:25 PM4/10/16
to MIT App Inventor Forum
Windows 10 / Chrome App Inventory 2

Testing with Samsung Galaxy S6 via WiFi

Simply trying  a Get Request with Basic Authentication does not work.

Using WebViewer it does work - however that doesn't help me since I need the response which is an XML document to parse it out.....

Anyone know a work around?

Here is an example of the request that is not working as well as the webviewer component which succeeds.

I also tried it this way

This webviewer request does work but is not useful in my situation as I need the response xml for parsing:


Taifun

unread,
Apr 11, 2016, 11:14:56 AM4/11/16
to MIT App Inventor Forum
why do you start a new thread? this does not help very much...
our discussion is here in case you could not find it anymore https://groups.google.com/d/msg/mitappinventortest/65LrNpZ87k0/vTgbRTfHAAAJ

so which content-type did you try?

Please prepare an example as small as possible, which demonstrates this issue and add the project (aia file) into this thread, so someone can take a look

Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 


Joseph Parker

unread,
Apr 11, 2016, 12:42:28 PM4/11/16
to MIT App Inventor Forum
Sorry I was kind of assuming there would be another forum for posting bug reports.....so I left the original thread.

Anyway here is the aia file.  I tried with content type text/xml
BasicHTTPAuth.aia

Taifun

unread,
Apr 11, 2016, 1:18:42 PM4/11/16
to MIT App Inventor Forum
you have to base64 encode the string username:password, see working example attached
Taifun


BasicHTTPAuthWorking.aia

Joseph Parker

unread,
Apr 11, 2016, 1:49:21 PM4/11/16
to MIT App Inventor Forum
Awesome Thanks Taifun!

Why does encoding it in the URL not work as it does for the webviewer?
Reply all
Reply to author
Forward
0 new messages