title: how to send request using xmlhttp to https server
body: <p>i am trying to send a GET request to an HTTPS server using xmlhttp. i am trying the following code:</p>
  
  <pre><code>            var getUrl = "https://example.com";
              var xhr = new XMLHttpRequest();
              xhr.open("GET",getUrl, false);
              xhr.send();
  </code></pre>
  
  <p>the request does not reach the server and i am unable to get a response. what may be the issue?</p>
  
  <p>EDIT: basically my javascript code is in a phonegap application, which has a Same-Origin-Policy. </p>