Q: Authentication with httplib

Zwika Moshkowzki zwi at turboimage.com
Mon Aug 23 05:27:22 EDT 1999


Hi,

I am using httplib to access a Page on a Server:

    .....
     h = httplib.HTTP(Server)
     h.putrequest('GET', Page)
     h.endheaders()
    .....

When Server is configured not to require a passwd, I set Server="myServer",
Page="/myPage",
and everything is OK.

My Q regards the situation where there is a need for authentication: Where
should I put the Username+Passwd?

Thanks in advance!

zwikaM






More information about the Python-list mailing list