yacy_search_server/htroot/CookieTest.html
(no author) 001513cc1f Now custom httpHeader can be created
and filled with cookies and so on.

This header one can set into serverObjects

Check CookieTest.html and CookieTest.java for details.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1334 6c8d7289-2bf4-0310-a012-ef5d649a1542
2006-01-13 22:50:04 +00:00

67 lines
1.6 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]#': Coockie - Test Page</title>
#%env/templates/metas.template%#
<link rel="alternate" type="application/rss+xml" title="Search for #[former]#" href="index.rss?search=#[former]#">
</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>