Documentation ¶
Index ¶
- type Cookie
- func (self *Cookie) Clear()
- func (self *Cookie) Count() int
- func (self *Cookie) Dump()
- func (self *Cookie) GetAllCookie() string
- func (self *Cookie) GetCookie(CookieName string) string
- func (self *Cookie) GetSaveCookie() bool
- func (self *Cookie) LoadCookie()
- func (self *Cookie) ParserCookie(Cookie string)
- func (self *Cookie) RemoveSaveCookie()
- func (self *Cookie) SaveCookie()
- func (self *Cookie) SetCookie(CookieName string, CookieValue string)
- func (self *Cookie) SetCookieDir(CookieDir string, Automkdir bool)
- func (self *Cookie) SetSaveCookie(IsSave bool)
- func (self *Cookie) SetURL(URL string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cookie ¶
type Cookie struct { ObjError *mwError.TError // Error Object // contains filtered or unexported fields }
func (*Cookie) GetAllCookie ¶
func (*Cookie) GetSaveCookie ¶
func (*Cookie) LoadCookie ¶
func (self *Cookie) LoadCookie()
func (*Cookie) ParserCookie ¶
def gwcInitCookie(self, URL):
res = urllib_parse.urlparse(URL) # print("返回对象:", res) # print("域名", res.netloc) self.SetURL(res.netloc) if not self.GetSaveCookie(): self.SetOption(pycurl.COOKIESESSION, True) self.SetOption(pycurl.FRESH_CONNECT, True) else: self.SetOption(pycurl.COOKIESESSION, False) self.SetOption(pycurl.FRESH_CONNECT, False) if self.Count() > 0: self.SetOption(pycurl.COOKIE, self.GetAllCookie())
func (*Cookie) RemoveSaveCookie ¶
func (self *Cookie) RemoveSaveCookie()
func (*Cookie) SaveCookie ¶
func (self *Cookie) SaveCookie()
func (*Cookie) SetCookieDir ¶
func (*Cookie) SetSaveCookie ¶
Click to show internal directories.
Click to hide internal directories.