title: a href link with basic authentication
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5507234/how-to-use-basic-auth-and-jquery-and-ajax">How to use Basic Auth and Jquery and Ajax</a>  </p>
  </blockquote>
  
  
  
  <p>I have a website were I login via basic authentication, that works fine. But when I want to download a .pdf file (that is generated by the server) I get a popup with the information that I need to login...again :/.</p>
  
  <p>How can I prevent this? Or how can I send the basic authentication information with the link? I saw some examples, like: <a href="http://username:password@yourserver.com/filename.pdf" rel="nofollow noreferrer">http://username:password@yourserver.com/filename.pdf</a> . But that don't work in IE.</p>
  
  <p>How can I solve this with only html and or jQuery?</p>
  
  <p>edit:
  I login via a form in the site, that works. But when I want to download an .pdf file while i'm logged in, I get the pop-up.</p>
  
  <pre><code>&lt;a href="http://yourserver.com/yourpdffile.pdf"&gt;Report1.pdf&lt;/a&gt;
  </code></pre>