RE: Python-list Digest, Vol 9, Issue 422

From: David Stockwell (winexpert_at_hotmail.com)
Date: 06/30/04


Date: Wed, 30 Jun 2004 15:05:39 +0000
To: python-list@python.org

Peter,

Thank you very much for the info. I have no idea how to know if its a cgi
thing or not but I'll just experiment with both and see which works best.

David
-------
Surf a wave to the future with a free tracfone
http://cellphone.duneram.com/index.html

>------------------------------
>
>Message: 10
>Date: Wed, 30 Jun 2004 15:35:53 +0200
>From: Peter Maas <peter.maas@mplusr.de>
>Subject: Re: using python with HTML and parameters
>To: python-list@python.org
>Message-ID: <cbufiq$lfq$1@swifty.westend.com>
>Content-Type: text/plain; charset=us-ascii; format=flowed
>
>David Stockwell schrieb:
>
> > In java/jsp I can pass parameters to my python script on a webpage by
> > doing something like this:
> >
> > http://somewhere.org/mypage.jsp?parm1=something&parm2=another
> >
> > How do I do that with python?
>
>If your Python Script uses CGI it's
>
>http://somewhere.org/mypage.py?parm1=something&parm2=another
>
>:) You have to parse the query string with cgi.parse().
>
>Mit freundlichen Gruessen,
>
>Peter Maas
>
>--
>-------------------------------------------------------------------
>Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
> eMail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
>-------------------------------------------------------------------
>
>
>------------------------------
>
>Message: 11
>Date: Wed, 30 Jun 2004 15:38:07 +0200
>From: Peter Maas <peter.maas@mplusr.de>
>Subject: Re: using python with HTML and parameters
>To: python-list@python.org
>Message-ID: <cbufmv$lfq$2@swifty.westend.com>
>Content-Type: text/plain; charset=us-ascii; format=flowed
>
>Peter Maas schrieb:
> > If your Python Script uses CGI it's
> >
> > http://somewhere.org/mypage.py?parm1=something&parm2=another
>
>Correction: this URL does not depend on CGI, only the Python code.
>
>Mit freundlichen Gruessen,
>
>Peter Maas
>
>--

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



Relevant Pages

  • Re: python cgi permision error
    ... assuming you are running this python script the standard cgi way and not ... through modpython or fastcgi. ... execute the python script from command line as the web user. ...
    (comp.lang.python)
  • Re: python cgi permision error
    ... assuming you are running this python script the standard cgi way and not ... through modpython or fastcgi. ... execute the python script from command line as the web user. ...
    (comp.lang.python)
  • Re: using python with HTML and parameters
    ... David Stockwell schrieb: ... If your Python Script uses CGI it's ... Peter Maas ...
    (comp.lang.python)
  • IIS, CGI, Python
    ... I want to run a python script as CGI. ... but my Python script wants to execute a Perforce (p4, ... source control) command. ...
    (microsoft.public.inetserver.iis)
  • Re: using python with HTML and parameters
    ... Peter Maas schrieb: ... > If your Python Script uses CGI it's ... this URL does not depend on CGI, only the Python code. ...
    (comp.lang.python)