[Python-au] httplib vs urllib2

James Mills prologic at shortcircuit.net.au
Tue Feb 16 03:17:54 UTC 2010


urllib and urllib2 provide more features on top of httplib.
httplib is the low-level HTTP client library used by both
these modules in the python std. library.


-- "Problems are solved by method"

On Tue, Feb 16, 2010 at 12:25 PM, Wilmar Sulaiman
<wilmar.sulaiman at gmail.com> wrote:
> Hi all,
> I am really confused between these two, they appear to be similar in
> terms functionality. What is the main different between two? In which
> scenario one is better than another.
> At the moment, I am using httplib. Should I just use either one or it
> is a good practice to use both in a code. I have not done enough
> googling but it seems that httplib do not suppot http proxy. I am
> looking for guidance whether to use urllib2 entirely in my code or
> httplib.
> Any assistance would be appreciated.
> Thanks.
> _______________________________________________
> python-au maillist  -  python-au at starship.python.net
> http://starship.python.net/mailman/listinfo/python-au

More information about the python-au mailing list