title: Google Apps Script HTTP Request and Host parameter
body: <p>I'd like to make a HTTP GET request within a Google Apps Script.
  I need the <code>Host</code> parameter inside the request header to be set:</p>
  
  <pre><code>function test() {
    var headers = {
      'contentType': 'application/json',
      'host': 'myDomain.com'
    }
    var options = {
      'method' : 'get',
      'headers': headers
   };
   UrlFetchApp.fetch('http://my/api/endpoint', options);
  </code></pre>
  
  <p>However, adding the Host parameter inside the request parameters results in the following error: "Incorrect attribute Header:Host"</p>
  
  <p>Exact same request perfectly works with Postman... Any insight on this?</p>