MCPcopy Index your code
hub / github.com/pyload/pyload / httpDownload

Method httpDownload

module/network/Browser.py:82–94  ·  view source on GitHub ↗

this can also download ftp

(self, url, filename, size=0, get={}, post={}, ref=True, cookies=True, chunks=1, resume=False,
                     status_notify=None, disposition=False)

Source from the content-addressed store, hash-verified

80 self.dl.abort = True
81
82 def httpDownload(self, url, filename, size=0, get={}, post={}, ref=True, cookies=True, chunks=1, resume=False,
83 status_notify=None, disposition=False):
84 """ this can also download ftp """
85 self._size = 0
86 self.dl = HTTPDownload(url, filename, size=size, get=get, post=post, referer=self.lastEffectiveURL if ref else None,
87 cj=self.cj if cookies else None, bucket=self.bucket, options=self.options,
88 status_notify=status_notify, disposition=disposition)
89 name = self.dl.download(chunks, resume)
90 self._size = self.dl.size
91
92 self.dl = None
93
94 return name
95
96 def load(self, *args, **kwargs):
97 """ retrieves page """

Callers 3

Browser.pyFile · 0.80
downloadMethod · 0.80
_downloadMethod · 0.80

Calls 2

HTTPDownloadClass · 0.90
downloadMethod · 0.45

Tested by

no test coverage detected