Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: LayoutTests/http/tests/cache/resources/subresource-failover-to-network.cgi

Issue 155173003: checkpoint unix version of apache win32 patch. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: re-daemonize apache on unix Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/perl -w 1 #!/usr/bin/perl -wT
2 2
3 print "content-type: text/html\n"; 3 print "content-type: text/html\n";
4 print "\n"; 4 print "\n";
5 print <<EOF 5 print <<EOF
6 <script> 6 <script>
7 try { 7 try {
8 var result = document.cookie.split(';')[0].split('=')[1]; 8 var result = document.cookie.split(';')[0].split('=')[1];
9 document.cookie = "result=PASS"; // for next time 9 document.cookie = "result=PASS"; // for next time
10 10
11 var r = new XMLHttpRequest(); 11 var r = new XMLHttpRequest();
12 r.open('POST', 'echo-no-store.cgi', false); 12 r.open('POST', 'echo-no-store.cgi', false);
13 r.send(result); 13 r.send(result);
14 document.write(r.responseText); 14 document.write(r.responseText);
15 } catch (e) { 15 } catch (e) {
16 document.write(e); 16 document.write(e);
17 } 17 }
18 </script> 18 </script>
19 EOF 19 EOF
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698