title: Jenkins POST Request with username/API Token javascript
body: <p>I'm using a chrome extension to display and visualize data from a jenkins server.
  I tried to start a certain build on that server using the jQuery function $.ajax(), but since the server is secured, I need to pass a username and password.</p>
  
  <p>After googling for a while I found a lot of people suggesting this format:</p>
  
  <pre><code>http://username:APIToken@jenkinsurl
  </code></pre>
  
  <p>I've tried both this, and a combination of username and the actual password, but nothing seemed to work.</p>
  
  <p>I have to note that I'm using the Jenkins <a href="https://wiki.jenkins-ci.org/display/JENKINS/Meet+Jenkins" rel="nofollow">Test Drive</a>, and <a href="http://localhost:8080/" rel="nofollow">http://localhost:8080/</a> for my purposes, since I don't actually own a jenkins server. Maybe that has something to do with the above not working. </p>