70 |
qq| |
qq| |
71 |
<html> |
<html> |
72 |
<head> |
<head> |
73 |
<META HTTP-EQUIV="Refresh" CONTENT="1; URL=$url"></META> |
<META HTTP-EQUIV="Refresh" CONTENT="2; URL=$url"></META> |
74 |
</head> |
</head> |
75 |
<body> |
<body> |
76 |
Refresh <a href="$url"><tt>$url</tt></a> |
Refresh <a href="$url"><tt>$url</tt></a> |
112 |
# shared run params |
# shared run params |
113 |
my $run = { |
my $run = { |
114 |
request_url => $req->request->url, |
request_url => $req->request->url, |
115 |
|
debug => 1, |
116 |
}; |
}; |
117 |
|
|
118 |
if ( |
if ( |
148 |
} |
} |
149 |
|
|
150 |
if ( $f ) { |
if ( $f ) { |
151 |
$f->add_status( { req => $req } ); |
$f->clean_status; |
152 |
$req->print( $f->html ); |
$f->add_status( { request => $req } ); |
153 |
|
warn "## status ", dump( map { keys %$_ } $f->status ); |
154 |
|
my $html = $f->html; |
155 |
|
die "no html output" unless $html; |
156 |
|
warn "## html ",length($html)," bytes"; |
157 |
|
$req->print( "$html\n" ); |
158 |
} else { |
} else { |
159 |
warn "# can't call request on nothing!"; |
warn "# can't call request on nothing!"; |
160 |
} |
} |
178 |
send_message($req); |
send_message($req); |
179 |
} |
} |
180 |
|
|
181 |
|
if ($req->conn ) { |
182 |
|
$req->conn->close; |
183 |
|
warn "## close connection: $@"; |
184 |
|
} |
185 |
} |
} |
186 |
|
|
187 |
# Here we accept a connection to the browser, and keep it open. Meanwhile we |
# Here we accept a connection to the browser, and keep it open. Meanwhile we |