On Sat, 20 Jan 2007, Python wrote:
> On Sat, 2007-01-20 at 10:13 -0800, Danny Yoo wrote:
>> The last line of the program looks suspicious. If it helps, let me
>> rearrange the program that you've written to:
>>
>> ###
>> print "Content-type:text/
On Sat, 2007-01-20 at 10:13 -0800, Danny Yoo wrote:
>
> On Sat, 20 Jan 2007, Paulino wrote:
>
> > Still doesn't work.
>
> [some text cut]
>
> > I tryed all the sugestions from Andre with no succes.
> >
> > The cgi script as only these two lines:
> > 'print "Content-type:text/html\r\n"
> > '
On Sat, 20 Jan 2007, Paulino wrote:
> Still doesn't work.
[some text cut]
> I tryed all the sugestions from Andre with no succes.
>
> The cgi script as only these two lines:
> 'print "Content-type:text/html\r\n"
> 'print "Location:http://python.org/\r\n\r";
Ok, good.
The last li
On Sat, 2007-01-20 at 15:22 +, Paulino wrote:
> Still doesn't work.
That's not terribly useful. What status did tamperdata report? What
did you see in the browser window? Did you get a 302 status?
Try (specify the right URL for your script)
telnet localhost 80
GET /cgi-bi
Still doesn't work.
This should be a server issue, once I use a very basic server:
'from BaseHTTPServer import HTTPServer
'from CGIHTTPServer import CGIHTTPRequestHandler
'HTTPServer(("localhost", 80),CGIHTTPRequestHandler).serve_forever()
I tryed also with the Karrigel embeded server and not
On Sat, 20 Jan 2007, Paulino wrote:
> well it doesn't work either!
Hi Paulino,
Try being more descriptive: what does your program look like now? It
sounds like you've made a few changes. If you can show us the program,
we'll do what we can to pinpoint the problems.
On Sat, 2007-01-20 at 02:10 +, Paulino wrote:
> Thank you Andre,
>
> well it doesn't work either!
This works,
#!/usr/bin/python
print "Location:http://python.org/\r\n\r";
as does this
#!/usr/bin/python
print "Content-type:text/html\r"
print "Location:http://python.org/
Thank you Andre,
well it doesn't work either!
Paulino
Andre Engels escreveu:
2007/1/18, Paulino <[EMAIL PROTECTED]>:
How can i redirect to another URL from a python CGI script.
Is's suposed to be as simply as:
print "Location : http://newurl "
It's not working.
this simp
Paulino wrote:
> How can i redirect to another URL from a python CGI script.
>
> Is's suposed to be as simply as:
>
> print "Location : http://newurl "
> It's not working.
>
> this simple code does't work -
> 'print "Content-Type:text/html\n\n"
Try it without the two extra newlines. A blank li
2007/1/18, Paulino <[EMAIL PROTECTED]>:
How can i redirect to another URL from a python CGI script.
Is's suposed to be as simply as:
print "Location : http://newurl "
It's not working.
this simple code does't work -
'print "Content-Type:text/html\n\n"
'print "Location : /cgi-bin/ecodiv.pyw "
10 matches
Mail list logo