Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: OT: would this ENV setup make you blow your lid too?

by leocharre (Priest)
on Jun 08, 2006 at 14:27 UTC ( [id://554286]=note: print w/replies, xml ) Need Help??


in reply to Re: OT: would this ENV setup make you blow your lid too?
in thread OT: would this ENV setup make you blow your lid too?

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: OT: would this ENV setup make you blow your lid too?
by cees (Curate) on Jun 08, 2006 at 14:42 UTC

    You do realize that when you run a perl script from a shell (ie from the command line) you will not get all of those standard CGI environment variables... It is the web server that sets those environment variables right before it executes the CGI script. When testing scripts from the command line you need to set those variables yourself, or use a module that can simulate a CGI environment like HTTP::Request::AsCGI

    The fact that your TERM environment variable is set to xterm gives it away that you ran this from the shell.

Re^3: OT: would this ENV setup make you blow your lid too?
by perrin (Chancellor) on Jun 08, 2006 at 14:49 UTC
    Oh, this was supposed to be CGI environment. I didn't get that from your post.

    Looks like the exec from your SSI just doesn't propagate the CGI environment variables, probably for security reasons. You might have better results using a #include virtual call to an actual CGI URL if your server supports it.

Re^3: OT: would this ENV setup make you blow your lid too?
by derby (Abbot) on Jun 08, 2006 at 14:39 UTC

    So the ENV dump is from a cgi script via an HTTP request or the command line? (I'm still uncertain)

    -derby

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://554286]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-12-06 16:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (44 votes). Check out past polls.