Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hallvord Reiar M. Steen
committed
Jul 3, 2013
1 parent
4e96dac
commit 6cac5f0
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>XMLHttpRequest: open() - value of Referer header</title> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<link rel="help" href="http://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#the-open()-method" data-tested-assertations="/following::ol[1]/li[2]/ol[1]/li[4]" /> | ||
</head> | ||
<body> | ||
<div id="log"></div> | ||
<script> | ||
test(function() { | ||
var client = new XMLHttpRequest() | ||
client.open("POST", "resources/inspect-headers.php?filter_name=referer", false) | ||
client.send(null) | ||
assert_equals(client.responseText, "referer: "+location.href) | ||
}) | ||
</script> | ||
</body> | ||
</html> |