title: jquery on load page send post request
body: <p>I want to create a html file with auto-login on my bank, this is my current code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  
  var MyHeaderss = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.32 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.32",
                "X-GWT-Permutation" : "6FEFBE57C6E73F0AB33BD5A4E17945DE",
                "Content-Type":"text/x-gwt-rpc; charset=utf-8",
                "X-GWT-Module-Base": "https://www.cartetitolari.mps.it/portaleTitolari/",
                "Referer": "https://www.cartetitolari.mps.it/portaleTitolari/titolari.html"};
  
  var login_data = '''7|0|7|https://www.cartetitolari.mps.it/portaleTitolari/|FEAC78FFDF81D6121438D70986AF1C41|portale.titolari.client.service.PTService|login|portale.titolari.client.common.login.LoginRequest/3583069702|{password}|{username}|1|2|3|4|1|5|5|0|0|6|7|'''
  
  $.ajax({
      type:"POST",
      beforeSend: function (request)
      {
        request.setRequestHeader(MyHeaderss);
      },
      url: 'https://www.cartetitolari.mps.it/portaleTitolari/service',
      data: login_data,
      success: function(databak) {
      }
  });
  
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I need when load this page send request to website and auto-login, this request with python works but I don't know how I can make it work in jquery, where am I going wrong?</p>