本文整理汇总了Python中Cookie.Cookie方法的典型用法代码示例。如果您正苦于以下问题:Python Cookie.Cookie方法的具体用法?Python Cookie.Cookie怎么用?Python Cookie.Cookie使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cookie
的用法示例。
在下文中一共展示了Cookie.Cookie方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: All
# 需要导入模块: import Cookie [as 别名]
# 或者: from Cookie import Cookie [as 别名]
def All(url,agent,proxy,redirect):
Cookie.Cookie(url,agent,proxy,redirect).Run()
AllowMethod.AllowMethod(url,agent,proxy,redirect).Run()
Robots.Robots(url,agent,proxy,redirect).Run()
ClientAccessPolicy.ClientAccessPolicy(url,agent,proxy,redirect).Run()
PrivateIP.PrivateIP(url,agent,proxy,redirect).Run()
Email.Email(url,agent,proxy,redirect).Run()
MultiIndex.MultiIndex(url,agent,proxy,redirect).Run()
Captcha.Captcha(url,agent,proxy,redirect).Run()
ApacheUsers.ApacheUsers(url,agent,proxy,redirect).Run()
ApacheXss.ApacheXss(url,agent,proxy,redirect).Run()
HtmlObject.HtmlObject(url,agent,proxy,redirect).Run()
LDAPInjection.LDAPInjection(url,agent,proxy,redirect).Run()
ModStatus.ModStatus(url,agent,proxy,redirect).Run()
AdminInterfaces.AdminInterfaces(url,agent,proxy,redirect).Run()
Backdoor.Backdoors(url,agent,proxy,redirect).Run()
Backup.Backup(url,agent,proxy,redirect).Run()
CommonDirectory.CommonDirectory(url,agent,proxy,redirect).Run()
CommonFile.CommonFile(url,agent,proxy,redirect).Run()
示例2: output
# 需要导入模块: import Cookie [as 别名]
# 或者: from Cookie import Cookie [as 别名]
def output(self, attrs=None, header = "Set-Cookie:"):
return "%s %s" % ( header, self.OutputString(attrs) )
示例3: load
# 需要导入模块: import Cookie [as 别名]
# 或者: from Cookie import Cookie [as 别名]
def load(self, rawdata):
"""Load cookies from a string (presumably HTTP_COOKIE) or
from a dictionary. Loading cookies from a dictionary 'd'
is equivalent to calling:
map(Cookie.__setitem__, d.keys(), d.values())
"""
if type(rawdata) == type(""):
self.__ParseString(rawdata)
else:
# self.update() wouldn't call our custom __setitem__
for k, v in rawdata.items():
self[k] = v
return
# end load()
示例4: __init__
# 需要导入模块: import Cookie [as 别名]
# 或者: from Cookie import Cookie [as 别名]
def __init__(self, input=None):
warnings.warn("Cookie/SmartCookie class is insecure; do not use it",
DeprecationWarning)
BaseCookie.__init__(self, input)
# end __init__
示例5: _test
# 需要导入模块: import Cookie [as 别名]
# 或者: from Cookie import Cookie [as 别名]
def _test():
import doctest, Cookie
return doctest.testmod(Cookie)