<div dir="ltr">I want to download a file via HTTP GET protocol (perhaps HTTP POST in the future, whatever method should allow relativly easy changes to be made to use POST later on)<br>I need to send custom headers like in urllib2.urlrequest()<br>
I need to be able to monitor the download progress WHILE it downloads like the hook function in urllib<br><br>I looked into urllib2 and it did everything except allow me to check the progress of the download during the download, it only downloads the file first with urlopen(). I also tried urllib and the reporthook function is great, except I can&#39;t send custom headers! I wish I could send a REQ object to the urlretrieve() function in urllib that way I can prepare those custom headers.. :(<br>
<br>I was looking at the httplib library, its a little complicated/intimidating to me, maybe it can be done in this?<br><br>Anyways, i would appreciate if soemone could write me a quick example to do this, or point me to the right library/funcs to do it. I want to be able to do it in native python libraries.<br>
<br>-thanks for reading<br></div>