REPOST: Re: Authentication, urllib, and httplib...

Ryan Phillips ryan.phillips at csus.edu
Fri Dec 28 16:19:55 EST 2001


This should help:
http://www.zope.org/Members/peterb/http_auth

-Ryan


"Vincent A. Primavera" <vincent_a_primavera at netzero.net> wrote in message
news:mailman.1009571133.29349.python-list at python.org...
> Hello,
> Trying to write a program to pull several Excel format reports off of a
> website which we at my company are spending alot of time on doing
> manually once a week.  The page has a form with several fields to be
> filled in before submitting.  Here's the problem, I can access the page
> with urllib's urlopen() but not with httplib's HTTPConnection.request()
> as I am getting a 401 Authorization Required error.  How can I be
> prompted for the user and password info as I am with urlopen()?  Or
> better yet pass these parameters?
>
> Thanks in advance,
> Vincent A. Primavera
>
> P.S. I have all of the necessary field names with exception to the
> username and password...
>
>

========= WAS CANCELLED BY =======:
Path: news.sol.net!spool0-milwwi.newsops.execpc.com!newsfeeds.sol.net!news-out.visi.com!hermes.visi.com!upp1.onvoy!onvoy.com!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!enews.sgi.com!news-xfer.nuri.net!feeder.kornet.net!news1.kornet.net!ua4canc3ll3r
From: "Ryan Phillips" <ryan.phillips at csus.edu>
Newsgroups: comp.lang.python
Subject: cmsg cancel <a0inlr$2k at dispatch.concentric.net>
Control: cancel <a0inlr$2k at dispatch.concentric.net>
Date: Mon, 31 Dec 2001 03:29:40 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.a0inlr$2k at dispatch.concentric.net>
NNTP-Posting-Host: 211.57.49.2
X-Trace: news2.kornet.net 1009775047 27193 211.57.49.2 (31 Dec 2001 05:04:07 GMT)
X-Complaints-To: usenet at news2.kornet.net
NNTP-Posting-Date: Mon, 31 Dec 2001 05:04:07 +0000 (UTC)
X-No-Archive: yes
X-Unac4ncel: yes
X-Commentary: I love NewsAgent 1.10 and the Sandblaster Cancel Engine Build 74 (19 March 1999)

This message was cancelled from within Mozilla.



More information about the Python-list mailing list