Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / xmlhttprequest / null-auth.php
blob2965c957d63ea16558a2c9fc910b1ead78d898e4
1 <p>Test that null values in XHR login/password parameters are treated correctly.</p>
2 <p>No auth tokens should be sent with this request.</p>
3 <pre id='syncResult'> </pre>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 req = new XMLHttpRequest;
9 req.open('POST', '<?php echo 'http://foo:bar@' . $_SERVER['HTTP_HOST'] . '/xmlhttprequest/resources/echo-auth.php' ?>', false, null, null);
10 req.send();
11 document.getElementById('syncResult').firstChild.nodeValue = req.responseText;
12 </script>