<?xml version="1.0"?>
<paste-with-annotations>
  <paste>
    <number>
      <integer>10504</integer>
    </number>
    <user>
      <string>alanshields</string>
    </user>
    <title>
      <string>Example of using rfc2109.lisp on Araneida</string>
    </title>
    <contents>
      <string>(defmethod handle-request-response ((handler cookie-monster) method request)
  (let ((my-cookie (cookie1:cookie-string &quot;dascookie&quot; &quot;goes down&quot; :max-age 600 :domain &quot;inquisitor.omrf.org&quot;))
	(my-hack-cookie (cookie1:cookie-string &quot;secret&quot; &quot;squirrel?&quot; :max-age 600 :domain &quot;.omrf.org&quot;))
	(my-domainless-cookie (cookie1:cookie-string &quot;no&quot; &quot;domain name from \\\&quot;hell!\\\&quot;&quot; :max-age 600))
	(received-cookies (request-header request :cookie))
	(parsed-cookies (loop for cookie-string in (request-header request :cookie)
			      collect (cookie1:parse-cookies cookie-string)))
	(safe-parsed-cookies (loop for cookie-string in (request-header request :cookie)
				   collect (cookie1:safe-parse-cookies cookie-string &quot;inquisitor.omrf.org&quot;))))
    (request-send-headers request :set-cookie (list my-cookie my-hack-cookie my-domainless-cookie))
    (html-stream
     (request-stream request)
     `(body
       (p &quot;Welcome to the jungle!&quot;)
       (p &quot;Gave cookie: &quot; ,my-cookie)
       (p &quot;Gave cookie (no domain specified): &quot; ,my-domainless-cookie)
       (p &quot;Also gave cookie (spoof attack): &quot; ,my-hack-cookie)
       (p &quot;Raw cookies: &quot; (pre ,received-cookies))
       (p &quot;Parsed cookies: &quot; (pre ,(write-to-string parsed-cookies)))
       (p &quot;Safe parsed cookies: &quot; (pre ,(write-to-string safe-parsed-cookies)))))))</string>
    </contents>
    <universal-time>
      <integer>3332183096</integer>
    </universal-time>
    <channel>
      <string>None</string>
    </channel>
    <colorization-mode>
      <string>Common Lisp</string>
    </colorization-mode>
    <maybe-spam>
      <null/>
    </maybe-spam>
    <is-unicode>
      <null/>
    </is-unicode>
  </paste>
  <annotation>
    <number>
      <integer>1</integer>
    </number>
    <user>
      <string>ghfgh</string>
    </user>
    <title>
      <string>fghfdgh</string>
    </title>
    <contents>
      <string>fghfgh</string>
    </contents>
    <universal-time>
      <integer>3336985819</integer>
    </universal-time>
    <channel>
      <string>None</string>
    </channel>
    <colorization-mode>
      <string></string>
    </colorization-mode>
    <maybe-spam>
      <null/>
    </maybe-spam>
    <is-unicode>
      <null/>
    </is-unicode>
  </annotation>
</paste-with-annotations>