Page 1 of 1

widget Browser + Port 80 + htaccess

Posted: Mon Mar 26, 2018 5:42 pm
by Volkmar
Hello,

I would like to enter to a htaccess secured website refered by a hyperlink on the website.

If I click on the hyperlink, I recieved the error message "Apache Server at www_mywebsite_de Port 80" (see picture).

Normally it will be open a popup to insert the authoristaion data. But it doesn't.

Is it possible to open the communiction on port 80 for the browser wigdet in LiveCode?

Thanks a lot for your help.
Volkmar

Re: widget Browser + Port 80 + htaccess

Posted: Mon Mar 26, 2018 6:09 pm
by FourthWorld
It's unfortunate that they don't provide the standard error code number in that message (is it in the header?), but it sounds like a 401.
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes

What credentials are needed to access that URL?

What happens when you access that URL in a dedicated browser application (Firefox, Chrome, etc.)?

Re: widget Browser + Port 80 + htaccess

Posted: Tue Mar 27, 2018 8:46 pm
by Volkmar
Hello Richard,

thanks for your support.

I believe nowadays it's a problem of the browser wigdet of Livecode to show the popup of the "htaccess" function of the websit /server to insert the logon data.

The error message will be the result of the wrong/no input.

Is it possible to allow popups in the browser wigdet of Livecode?

I doesn't find a solution.

++++

To your questions:

I only recieve these error message.

But in other adroid browsers like Chrome and Dolphin the popup to insert the htaccess login data is shown by the link of the website.

Re: widget Browser + Port 80 + htaccess

Posted: Wed Mar 28, 2018 1:03 am
by FourthWorld
Ah, right. That's a good hypothesis. I'll bet there's a way to handle that, I just don't know what it is.

Is this a site you'll have credentials for in advance? You may be able to pass those in the URL.

But if you need the ability to enter those, we'll need guidance from someone who knows the trick. But given how many apps rely on the embedded browser engine I'll bet there's a way to do this.

Re: widget Browser + Port 80 + htaccess

Posted: Thu Mar 29, 2018 12:34 am
by sturgis
I ran across this issue, and ended up using revbrowseropen rather than a widget to get around it. It would be very nice if this capability was added to the widget, or if there was a way to make it work as it is. I really like being able to drag and drop a browser.

Re: widget Browser + Port 80 + htaccess

Posted: Mon Apr 02, 2018 6:07 pm
by Volkmar
Thanks a lot for your help.
I think the function "revbrowseropen" doesn't work for the android system.
I found a solution for the widget "Browser" by using the link as http://username:password@website/path
But it's not a secured way.

Re: widget Browser + Port 80 + htaccess

Posted: Mon Apr 02, 2018 6:20 pm
by FourthWorld
If the web site is using HTTPS it's as secure as entering it in the browser form. If the site is only using HTTP then even the browser form is unsafe.

https://stackoverflow.com/questions/271 ... encryption