Author Topic: Autologin into a webpage via the default GNOME-Webbrowser  (Read 299 times)

Offline missmansirao

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-1
    • View Profile
    • Tekslate
Autologin into a webpage via the default GNOME-Webbrowser
« on: November 30, 2017, 06:03:29 am »
I'm trying to call a html page like this with the Raspbian's default web browser and it leads me just to the default login-page.

Neither does it with Midori on the desktop.

When calling the exact same page with Firefox or Google Chrome on the desktop it just works.

In the first place I had

<body onLoad="doLogin()">
Which had the exact same behaviour, but worked on Firefox and Chrome. Is there anyway on getting this done with the built-in browser on raspbian?

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script>
<!--
function doLogin() {
document.form1.action="https://ip/sub/main.html?page=map_info&id=177";
document.form1.submit();
}
//-->
</script>
</head>
<body >
<form name="form1" id=form1 method="post">
    <input type="hidden" name="process" value="login">
    <input type="hidden" name="page" value="start">
    <input type="text" name="user" value="User">
    <input type="password" name="password" value="Pass">
</form>
<script>window.onload=doLogin;</script>

</body>
</html>