Re: CGI problem fith file URIs

2008-03-10 Thread Tom Phoenix
On Mon, Mar 10, 2008 at 12:17 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > In what way is opening a file from a browser a CGI problem? Maybe you missed where the OP said "I am developing a help viewer app with CGI pm." Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe,

Re: CGI problem fith file URIs

2008-03-10 Thread Gunnar Hjalmarsson
Tom Phoenix wrote: On Mon, Mar 10, 2008 at 7:50 AM, Mike Martin <[EMAIL PROTECTED]> wrote: However when I try to access the file ie: with file://usr/share/doc/somefile.html I cannot If you're doing CGI programming with Perl, you should be asking your questions about that in the beginners

Re: CGI problem fith file URIs

2008-03-10 Thread Tom Phoenix
On Mon, Mar 10, 2008 at 7:50 AM, Mike Martin <[EMAIL PROTECTED]> wrote: > However when I try to access the file ie: with > file://usr/share/doc/somefile.html I cannot Now, you know that a file URL refers to a file that is available to the machine that has the browser, right? It's not generally

Re: cgi problem

2005-07-05 Thread Aditi Gupta
Hi Ganesh, Thanks for your time. I tried that but still its giving 'internal server error'. There were no unix paths in the httpd configuration file, i found windows paths everywhere. But at one place user directory is given as UserDir "My Documents/My Website" shall i comment this line? i've

Re: cgi problem

2005-07-04 Thread N. Ganesh Babu
N. Ganesh Babu wrote: Hai Aditi, I have worked with Apacche, Activestateperl 5.8.7 and XP. I will give my experience to you. 1. Install Apache 2. Install Activestateperl 3. Configure Apache to accept cgi scripts. Please read this "http://localhost/manual/howto/cgi.html"; link after instal

Re: cgi problem

2005-07-04 Thread Aditi Gupta
ya i have installed perl interpreter but the IIS option in 'add/remove' programs is not checked and i don't have windows xp installation cd for the time being. But i've downloaded apache, won't that serve the purpose? i really have no idea about this, so any help would be highly appreciated. And

Re: cgi problem

2005-07-03 Thread Owen Cook
On Mon, 4 Jul 2005, Aditi Gupta wrote: > > I'm very new to CGI programming. I'm working with following: > Browser: Mozilla Firefox > Server: Apache 2.0.54 > OS: Windows XP > > I'm going through the following online tutorial for cgi: > http://www.cgi101.com/book/ > > The 1st cgi code that I w

Re: CGI Problem

2001-05-02 Thread SunDog
Ok ...after the #!/usr/bin/perl ... fix the next thing to check for is ^M this is the extra CR that Windoze editors leave behind ... you can open this file up on a linux box using fox-editor it will show any offending ^M's delete them ...then try again ... regards SunDog ==

RE: CGI Problem

2001-05-02 Thread King, Jason
Joe McMahon writes .. >On Wed, 2 May 2001, J. Patrick Lanigan wrote: > >> I am getting an "Internal Server Error" returned to my >browser. The error >> log shows the following: >> >> "[Wed May 2 00:04:39 2001] [error] [client 192.168.0.10] >Premature end of >> script headers: /path/to/filenam

Re: CGI Problem

2001-05-02 Thread Matt Cauthorn
It's almost certainly (to my mind) your http header. Make sure and use the CGI.pm module, as it makes this type of thing extremely easy to write. --- "J. Patrick Lanigan" <[EMAIL PROTECTED]> wrote: > I am getting an "Internal Server Error" returned to my browser. The error > log shows the follow

Re: CGI Problem

2001-05-02 Thread Joe McMahon
On Wed, 2 May 2001, J. Patrick Lanigan wrote: > I am getting an "Internal Server Error" returned to my browser. The error > log shows the following: > > "[Wed May 2 00:04:39 2001] [error] [client 192.168.0.10] Premature end of > script headers: /path/to/filename" > > I have set the directory and

RE: CGI Problem

2001-05-02 Thread J. Patrick Lanigan
Thank you, Thank you, Thank you!! I did everything you said and it worked. So, I wanted to find out what specifically the problem was. Turns out it was the absense of the -w switch on the shebang. Thanks again, Patrick > Gary Stainburn wrote: > > Hi Patick, > > You say you've set the permission

Re: CGI Problem

2001-05-02 Thread Gary Stainburn
Hi Patick, You say you've set the permissions for the dir and the script to 755. Have you checked the permissions for the parent directories? Also, put the '-w' on the perl line, and 'use strict'. lastly, put the following line as the 1st statement in the script print STDERR "\nGot this far\n

RE: CGI Problem

2001-05-01 Thread J. Patrick Lanigan
Yeah, the CLI gave me the expected result. I am pretty stumped at this point. I have added everything to my httpd.conf that should be in there. And I am geting a different error than before, so I am confident that the file is found. Anyone have any other ideas? Thanks Jason, Patrick > jason kin

RE: CGI Problem

2001-05-01 Thread King, Jason
J. Patrick Lanigan writes .. >I tried them on th CLI first. I even su'ed to user nobody to >match the env of apache. and on the CLI - I presume that they outputted exactly what you expected .. ie. "Content-type: text/html Hello World! " it doesn't seem like a permissions error .. I presume

RE: CGI Problem

2001-05-01 Thread J. Patrick Lanigan
I tried them on th CLI first. I even su'ed to user nobody to match the env of apache. > King, Jason wrote: > > J. Patrick Lanigan writes .. > > > >I am getting an "Internal Server Error" returned to my > >browser. The error > >log shows the following: > > > >"[Wed May 2 00:04:39 2001] [error] [c

RE: CGI Problem

2001-05-01 Thread King, Jason
J. Patrick Lanigan writes .. >I am getting an "Internal Server Error" returned to my >browser. The error >log shows the following: > >"[Wed May 2 00:04:39 2001] [error] [client 192.168.0.10] >Premature end of >script headers: /path/to/filename" your scripts are very simple which would sugge

Re: CGI problem, no luck so far

2001-04-20 Thread Matt Cauthorn
Pam -- this is a bit of a shot in the dark, but ensure that perl is not messing up your http header in it's buffer by using: $|=1; # This sets autoflush to flush the buffer after every print, printf and write (from the Camel). Hope it helps. We're using your Solaris and Perl versions at work wit

RE: CGI problem, no luck so far

2001-04-20 Thread blowther
when running the script through CGI or when using perl in an embeded situation. Bruce W. Lowther Micron Technology, Inc. Boise, Idaho -Original Message- From: Dan Brown [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 19, 2001 4:23 PM To: Pam Derks Cc: [EMAIL PROTECTED] Subject: Re: CGI

Re: CGI problem, no luck so far

2001-04-19 Thread Dan Brown
Is this really the exact script? The reason I ask is that you shouldn't even get as far as to get the error you present ("Premature end of script headers"). There is an extra curley brace at the end that should have caused the Perl compiler to croak with something like Unmatched right c

RE: CGI problem

2001-04-19 Thread Nutter, Mark
> Am testing out a new web server running SunOS5.8 " and I > can't get any of my cgi scripts to run. I get this error message: > "Premature end of script headers" > > the cgi scripts worked perfectly on the old server which was running Digital UNIX. In general this means your script died befor

Re: CGI problem

2001-04-19 Thread Dan Brown
I for one will need more information to diagnose this. You mention that the OS is different on the two boxes but what about the rest of the configuration? For example, is the web server on the old machine the same as on the new machine (e.g., are the web servers on both machines Apache?)? Are t