After many curse words I figured it out. A two-stage filter was
needed. The 5th line solves the problem of colliding domain cookies:
NowCookie=http.cookies.SimpleCookie() # Instantiate a SimpleCookie
object
savedCookie=os.environ.get('HTTP_COOKIE') # get the cookie string
if savedCookie: # Alread
On 04/12/2010 21:13, Gnarlodious wrote:
What you posted doesn't work, I don't know why. All I get is a blank
page and no Apache error report.
There are two problems with this. I am really trying to figure out how
to trap an error on the server without exposing my innards to the
world, which impo
What you posted doesn't work, I don't know why. All I get is a blank
page and no Apache error report.
There are two problems with this. I am really trying to figure out how
to trap an error on the server without exposing my innards to the
world, which import cgitb; cgitb.enable() does. The other p
On 04/12/2010 18:33, Gnarlodious wrote:
I have a serious error that causes the process to crash. Apache
refuses to log the error and it only happens on the server, not on the
dev machine. Problem is, I can't figure out how to get the most recent
error. I can find all sorts of pages telling how to
I've sometimes got similar situations in CGI, that turned out to be
because of a syntax error that kept apache from being able to run the
script. What if you just run the script at the command line? It
should either error out due to lack of a CGI environment/arguments,
but hopefully it'll give yo
I have a serious error that causes the process to crash. Apache
refuses to log the error and it only happens on the server, not on the
dev machine. Problem is, I can't figure out how to get the most recent
error. I can find all sorts of pages telling how to print a specific
error, but how to get an
>
>> This is some kind of crooked game, right? Your code works fine on a
>> local server, and there's no reason why it shouldn't work just fine on
>> yours either. All you are changing is the standard input to the process.
>>
>> Since you claim to have spotted this specific error, perhaps you'd lik
> This is some kind of crooked game, right? Your code works fine on a
> local server, and there's no reason why it shouldn't work just fine on
> yours either. All you are changing is the standard input to the process.
>
> Since you claim to have spotted this specific error, perhaps you'd like
> to
Jesse Aldridge wrote:
> I uploaded the following script, called "test.py", to my webhost.
> It works find except when I input the string "python ". Note that's
> the word "python" followed by a space. If I submit that I get a 403
> error. It seems to work fine with any other string.
> What's goi
On Feb 25, 11:42 am, Jesse Aldridge <[EMAIL PROTECTED]> wrote:
> > If you cant have access to the apache (?) error_log, you can put this in
> > your code:
> > import cgitb
> > cgitb.enable()
>
> > Which should trap what is being writed on the error stream and put it on
> > the cgi output.
>
> > Ger
> If you cant have access to the apache (?) error_log, you can put this in
> your code:
> import cgitb
> cgitb.enable()
>
> Which should trap what is being writed on the error stream and put it on
> the cgi output.
>
> Gerardo
I added that. I get no errors. It still doesn't work. Well, I do
ge
Jesse Aldridge wrote:
>I uploaded the following script, called "test.py", to my webhost.
>It works find except when I input the string "python ". Note that's
>the word "python" followed by a space. If I submit that I get a 403
>error. It seems to work fine with any other string.
>What's going o
GET YOUR SITE LISTET AT GOOGLE & YAHOO "NR.1" SEARCH RESULT for FREE Now BEST
CHANCE EVER 2 GET TONZ OF SIGN UPS IN UR DOWNLINE !!! CLICK IT DON'T MISS
MAKE 16.000 Dollars Every Fcuckng Month !
Click Don't Miss it !!
Jesse Aldridge <[EMAIL PROTECTED]> wrote: I uploaded the following script
I uploaded the following script, called "test.py", to my webhost.
It works find except when I input the string "python ". Note that's
the word "python" followed by a space. If I submit that I get a 403
error. It seems to work fine with any other string.
What's going on here?
Here's the script i
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> It works fine when i run it in python , but it won't run when i run my
> cgi script.
>
> It says AttributeError: 'module' object has no attribute 'FTPHost'
> what could be a possible cause? thanks.
Perhaps you called your script 'ftp
I'm not sure, but in your CGI script, where you have
import cgi
or
import cgi
import cgitb; cgitb.enable()
there sometimes come error if place any other modules over it.
I don't now if it is that, 'cus i don't have seen more of your code.
so if your code is:
importFTPHost
import cgi
import cgitb; c
hi
I have a little function to use ftputil module to get a file from a
server
def getfile(filename):
import ftputil
host = ftputil.FTPHost(svr, usr,pswd)
host.chdir("/somewhere")
try:
host.download(filename,filename,"a")
except ftputil.FTPErr
17 matches
Mail list logo