B2G/gecko/browser/components/privatebrowsing/test/browser/title.sjs
// a cookie is present or not.
a cookie is present or not.
a cookie is present or not .
function handleRequest(request, response) {
  response.setStatusLine(request.httpVersion, 200, "OK");
  response.setHeader("Content-Type", "text/html", false);
  var cookie = "name=value";
  var title = "No Cookie";
  if (request.hasHeader("Cookie") && request.getHeader("Cookie") == cookie)
    title = "Cookie";
  else
    response.setHeader("Set-Cookie", cookie, false);
  response.write("<html><head><title>");
  response.write(title);
  response.write("</title><body>test page</body></html>");
}
function handleRequest ( request , response ) { response . setStatusLine ( request . httpVersion , 200 , "OK" ) ; response . setHeader ( "Content-Type" , "text/html" , false ) ; var cookie = "name=value" ; var title = "No Cookie" ; if ( request . hasHeader ( "Cookie" ) && request . getHeader ( "Cookie" ) == cookie ) title = "Cookie" ; else response . setHeader ( "Set-Cookie" , cookie , false ) ; response . write ( "<html><head><title>" ) ; response . write ( title ) ; response . write ( "</title><body>test page</body></html>" ) ; }
a cookie is present or not.
a cookie is present or not .