title: Bad request using UrlFetchApp.fetch method
body: <p>I'm trying to get the list of tags from Pinboard.in using it's api but I get an error when the fetch method is executed.</p>
  
  <p>The code is:</p>
  
  <pre><code>function getTags(user, password) {
    var url ="https://"+user+":"+password+"@api.pinboard.in/v1/tags/get"
    var response=httpGet(url);
    return response;
  }
  function httpGet(theUrl)
      {
        var options = { "contentType" : "application/xml; charset=utf-8"} ;
        var response = UrlFetchApp.fetch(theUrl,options);
        return response.getContentText();
      }
  </code></pre>
  
  <p>What I'm doing wrong?</p>