[Python-talk] Can python program read index.jsp web page?

Alex Hewitt hewitt_tech at comcast.net
Thu Aug 9 22:14:51 EDT 2007


At work we have applications written in Java that are accessed from a
web browser. Many of the pages have names like index.jsp which I believe
are Java servlets. Can a Python program read these pages? I tried
accessing them using urllib but no joy. It may be that there is some
kind of user authentication going on under the covers but I don't get a
prompt from urllib as I would when I access my Linksys router's built-in
web server. When you access the Linksys router's web interface urllib
pops up a dialog box requesting your username/password. My motive in
doing this is to use a Python program to exercise some of the
application functions but I can't do that if I can't read the pages in
the first place. One other thing, when some of the pages do come up in
Firefox or Internet Explorer, the java console starts in the background.

-Alex





More information about the Python-talk mailing list