Пример #1
0
 def POST(self):
     cookies = ObjectWeb.cookies()
     if not cookies:
         ObjectWeb.status("404 Not Found")
         return ""
     else:
         ObjectWeb.status("200 OK")
         return cookies.get("CookieName", "")
Пример #2
0
    def GET(self):
        ObjectWeb.status("404 Not Found")
        ObjectWeb.header("Content-Type", "text/plain")

        return "404 Not Found"
Пример #3
0
 def GET(self):
     ObjectWeb.status("200 OK")
     return "PASS"
Пример #4
0
 def GET(self):
     ObjectWeb.status("200 OK")
     ObjectWeb.setcookie("CookieName", "CookieValue")
     return ""
Пример #5
0
 def POST(self):
     ObjectWeb.status("200 OK")
     return "REDIRECT PASS"
Пример #6
0
 def GET(self):
     ObjectWeb.status("404 Not Found")
     ObjectWeb.header("Content-Type", "text/plain")
     
     return "404 Not Found"