yacy_search_server/htroot/CookieTest.html
2006-03-04 19:15:42 +00:00

66 lines
1.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>YaCy '#[clientname]#': Cookie - Test Page</title>
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#%env/templates/header.template%#
</script>
Here is a cookie test page.
<hr />
<br />
<form action="">
<input type="hidden" name="act" value="clear_cookie" />
<input type="submit" name="set_action" value="Just clean it" />
</form>
<hr />
<br />
<form action="">
<input type="hidden" name="act" value="set_cookie" />
Name: <input type=text name="cookie_name" /><br />
Value: <input type=text name="cookie_value" /><br />
<input type="submit" name="set_action" value="Dear server, set this coockie for me!" />
</form>
<br />
<hr />
Cookies at this browser:<br />
<script type="text/javascript">
document.write(document.cookie.split(';').join(';<br />'))
</script>
#(cookiesout)#
::
<br />
<hr />
Cookies coming to server:<br />
#(/cookiesout)#
#{cookiesout}#
#[string]#
#{/cookiesout}#
#(cookiesin)#
::
<br />
<hr />
Cookies server sent:<br />
#(/cookiesin)#
#{cookiesin}#
#[name]# = #[value]#
#{/cookiesin}#
<br>
<hr>
<center><i>YaCy is a GPL'ed project
with the target of implementing a P2P-based global search engine.<br>
Architecture (C) by Michael Peter Christen,
<img src="/env/grafics/mcemailh.gif"></i></center>
#%env/templates/footer.template%#
</body>
</html>