HTML and python

John J. Lee jjl at pobox.com
Sun Jun 2 21:24:09 CEST 2002


On Sun, 2 Jun 2002, Steve Holden wrote:
> "Ken" <ken at hotmail.com> wrote in message
> news:ad94md$viphf$1 at ID-49758.news.dfncis.de...
> > How do you call to a static HTML page from the script?
> >
> > <FORM METHOD="POST" ACTION="frame2a.html" target=_parent>
> > This doesn't seem to be working..... Can someone help?
> >
>
> It really makes no sense to use method POST to access a static page. Using
> method GET will probably owrk, though you will see the for contents in the
> URL.

Why doesn't it make sense?

(following from memory, may be wrong)

from urllib2 import urlopen
from urllib import urlencode
result = urlopen(url, urlencode(data))


Sorry if this is no help -- I didn't see the original message.


John




More information about the Python-list mailing list