/[suikacvs]/www/test/http/mime-multipart/mixed-replace/content-location-1.cgi
Suika

Contents of /www/test/http/mime-multipart/mixed-replace/content-location-1.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Feb 10 15:03:58 2007 UTC (19 years, 4 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
New tests

1 #!/usr/bin/perl
2 use strict;
3
4 require 'mixed-replace-generation.pl';
5
6 $| = 1;
7
8 my $mr = mixed_replace_generation->new;
9
10 $mr->output_cgi_header;
11
12 for my $i (1..10) {
13 $mr->output_boundary;
14
15 $mr->output_line ('Content-Type: text/html; charset=us-ascii');
16 $mr->output_line ('Content-Location: http://www.example.com/test/' . $i);
17
18 $mr->output_line ('');
19
20 $mr->output_line ('<script src="../../../support/result0.js"></script>');
21 $mr->output_line ('<p>Part ' . $i . '/10</p>');
22 $mr->output_line ('<p><code>location.href</code> is <script type="text/javascript">writeResult (location.href)</script>.</p>');
23 $mr->output_line ('<p><a href="relative-ref">relative-ref</a></p>');
24 $mr->output_line ('<p><a id="a">view-source:<var>this</var></a></p>');
25 $mr->output_line ('<script>document.getElementById ("a").href = "view-source:" + location.href</script>');
26
27 sleep 1;
28 }
29
30 $mr->output_last_boundary;

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24