* Vince Spicer [101019 12:25]:
> On Tue, Oct 19, 2010 at 1:56 PM, Tim Johnson wrote:
>
>
> Tim,
>
> Unless you are tied to the standard library I would recommend looking at
>
> httplib2 http://code.google.com/p/httplib2/
>
> This handles your authentication and connection much better then t
On 19 October 2010 21:56, Tim Johnson wrote:
> I've written the following function which successfully gets an
> authenticated URL:
> def getRestrictedURL(authName,URL,log,pswd):
> auth_handler = urllib2.HTTPBasicAuthHandler()
> auth_handler.add_password(authName, URL,log,pswd)
>
On Tue, Oct 19, 2010 at 1:56 PM, Tim Johnson wrote:
> I've written the following function which successfully gets an
> authenticated URL:
> def getRestrictedURL(authName,URL,log,pswd):
>auth_handler = urllib2.HTTPBasicAuthHandler()
>auth_handler.add_password(authName, URL,log,pswd
I've written the following function which successfully gets an
authenticated URL:
def getRestrictedURL(authName,URL,log,pswd):
auth_handler = urllib2.HTTPBasicAuthHandler()
auth_handler.add_password(authName, URL,log,pswd)
opener = urllib2.build_opener(auth_handler)