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

Contents of /www/test/http/mime-multipart/mixed-replace/text-html-1.cgi

Parent Directory Parent Directory | Revision Log Revision Log


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

1 wakaba 1.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    
17     $mr->output_line ('');
18    
19     $mr->output_line ('<script src="../../../support/result0.js"></script>');
20     $mr->output_line ('<p>Part ' . $i . '/10</p>');
21     $mr->output_line ('<p><code>location.href</code> is <script type="text/javascript">writeResult (location.href)</script>.</p>');
22     $mr->output_line ('<p><a id="a">view-source:<var>this</var></a></p>');
23     $mr->output_line ('<script>document.getElementById ("a").href = "view-source:" + location.href</script>');
24    
25     sleep 1;
26     }
27    
28     $mr->output_last_boundary;

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24