Ron Garret <[EMAIL PROTECTED]> writes:
>In article <[EMAIL PROTECTED]>,
> Steve Holden <[EMAIL PROTECTED]> wrote:
>> I wouldn't necessarily say you are wrong here, It's just that the cgi
>> module has sort of "just growed", so it isn't conveniently factyored for
>> reusability in other contexts
In article <[EMAIL PROTECTED]>,
Steve Holden <[EMAIL PROTECTED]> wrote:
> I wouldn't necessarily say you are wrong here, It's just that the cgi
> module has sort of "just growed", so it isn't conveniently factyored for
> reusability in other contexts. Several people (including me) have taken
>
Ron Garret wrote:
> In article <[EMAIL PROTECTED]>,
> Kent Johnson <[EMAIL PROTECTED]> wrote:
>
>
>>Steve Holden wrote:
>>
>>>Ron Garret wrote:
>>>
In article <[EMAIL PROTECTED]>,
Steve Holden <[EMAIL PROTECTED]> wrote:
>But basically, you aren't providing a CGI envir
In article <[EMAIL PROTECTED]>,
Damjan <[EMAIL PROTECTED]> wrote:
> >> But basically, you aren't providing a CGI environment, and that's why
> >> cgi.parse() isn't working.
> >
> > Clearly. So what should I be doing?
>
> Probably you'll need to read the source of cgi.parse_qs (like Steve did)
In article <[EMAIL PROTECTED]>,
Kent Johnson <[EMAIL PROTECTED]> wrote:
> Steve Holden wrote:
> > Ron Garret wrote:
> >> In article <[EMAIL PROTECTED]>,
> >> Steve Holden <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>> But basically, you aren't providing a CGI environment, and that's why
> >>> cgi.p
In article <[EMAIL PROTECTED]>,
Steve Holden <[EMAIL PROTECTED]> wrote:
> Ron Garret wrote:
> > In article <[EMAIL PROTECTED]>,
> > Steve Holden <[EMAIL PROTECTED]> wrote:
> >
> >
> >>But basically, you aren't providing a CGI environment, and that's why
> >>cgi.parse() isn't working.
> >
> >
Ron Garret wrote:
> In article <[EMAIL PROTECTED]>,
> Steve Holden <[EMAIL PROTECTED]> wrote:
>
>
>>But basically, you aren't providing a CGI environment, and that's why
>>cgi.parse() isn't working.
>
>
> Clearly. So what should I be doing? Surely I'm not the first person to
> have this pr
>> But basically, you aren't providing a CGI environment, and that's why
>> cgi.parse() isn't working.
>
> Clearly. So what should I be doing?
Probably you'll need to read the source of cgi.parse_qs (like Steve did) and
see what it needs from os.environ and then provide that (either in
os.envir
In article <[EMAIL PROTECTED]>,
Steve Holden <[EMAIL PROTECTED]> wrote:
> But basically, you aren't providing a CGI environment, and that's why
> cgi.parse() isn't working.
Clearly. So what should I be doing? Surely I'm not the first person to
have this problem?
I have managed to work aroun
Ron Garret wrote:
> In article <[EMAIL PROTECTED]>,
> Steve Holden <[EMAIL PROTECTED]> wrote:
>
>
>>The normal way is
>>
>>s = cgi.parse()
>>
>>since the CGI script sees the client network socket (after consumption
>>of HTTP headers) as its standard input.
>
>
> Doesn't work. (I even tried s
In article <[EMAIL PROTECTED]>,
Steve Holden <[EMAIL PROTECTED]> wrote:
> The normal way is
>
> s = cgi.parse()
>
> since the CGI script sees the client network socket (after consumption
> of HTTP headers) as its standard input.
Doesn't work. (I even tried sys.stdin=r.rfile; s=cgi.parse())
Ron Garret wrote:
> I'm trying to figure out how to use BaseHTTPServer. Here's my little
> test app:
>
> =
>
> #!/usr/bin/python
>
> from BaseHTTPServer import *
>
> import cgi
>
> class myHandler(BaseHTTPRequestHandler):
>
> def do_GET(r):
> s = ''
>
I'm trying to figure out how to use BaseHTTPServer. Here's my little
test app:
=
#!/usr/bin/python
from BaseHTTPServer import *
import cgi
class myHandler(BaseHTTPRequestHandler):
def do_GET(r):
s = ''
try:
s = cgi.parse_qs(r.rfile.read(int(r.
13 matches
Mail list logo