RE: content type headers

2009-07-06 Thread Hellman, Matthew
ust say this list is quite slow compared to others. >> >>Matthew is correct. I used the FF live-headers add-on and the section >>for the /images/showImage.html was Content-Type text/html. >> >>As for how the page is generated and images displayed, it's a bit >

RE: content type headers

2009-07-03 Thread Dermot Paikkos
you do such things as resize the image on the fly using URL > parameters. Something like: > > > > src="/images/showImage.html?imageid=123456&size=800x600 > > > > the HTTP response headers would probably shed the most light on the > problem, nudge, nudge;-)

RE: content type headers

2009-07-02 Thread Hellman, Matthew
ageid=123456&size=800x600 the HTTP response headers would probably shed the most light on the problem, nudge, nudge;-) >>-Original Message- >>From: Gunnar Hjalmarsson [mailto:nore...@gunnar.cc] >>Sent: Thursday, July 02, 2009 1:24 PM >>To: beginners-cgi@perl

Re: content type headers

2009-07-02 Thread Gunnar Hjalmarsson
elated multipart/report multipart/signed multipart/voice-message text/calendar text/csscss text/directory text/enriched text/html html htm text/parityfec text/plain asc txt text/prs.lines.tag text/rfc822-headers text/ri

RE: content type headers

2009-07-02 Thread Hellman, Matthew
value, IE will take an educated guess. FF will not. This would jive with the behavior I would expect with an incorrect content-type header. >>So my question, initially, is can a request set the content_type more >>than once? Sure, you can add 10 different content type headers if you

Re: content type headers

2009-07-02 Thread Gunnar Hjalmarsson
Dermot Paikkos wrote: If there is a request for a page that has mixed content EG: 'text/html' and 'image/jpeg', the image media is not being displayed correctly under the FireFox browser. What exactly do you mean by that? When you use a browser to request a usual HTML page with IMG elements,

content type headers

2009-07-02 Thread Dermot Paikkos
Hi, I've got some old code to deal with and I have hit a problem. If there is a request for a page that has mixed content EG: 'text/html' and 'image/jpeg', the image media is not being displayed correctly under the FireFox browser. The way things currently work is that media other than text

Re: Premature end of script headers

2008-11-16 Thread Adam Jimerson
"Mike Williams" wrote: >> [EMAIL PROTECTED] wrote: >> > Hello, >> > >> > i need to know the reasons for this error "Premature end of script >> > headers" i checked with my http header content-type:text/html ,but i >> > ha

Re: Premature end of script headers

2007-06-13 Thread Mike Williams
On 6/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > i made changes in httpd.conf file as you mentioned , here is mine AllowOverride None Options None Order allow,deny Allow from all Options ExecCGI AddHandler cgi-script.exe Saran, There is a typo in th

Re: Premature end of script headers

2007-06-13 Thread saran . jegan
On Jun 12, 7:54 pm, [EMAIL PROTECTED] (Mike Williams) wrote: > Saravanan, > > Hi there. Please do a reply to all to keep this on the list. Someone > else may be able to help, and someone else may be helped in the future > if it lands in the list archives. > > On 6/12/07, saravanan Jagadeesan <[EM

Re: Premature end of script headers

2007-06-13 Thread saran . jegan
Mike, > Hi there. Please do a reply to all to keep this on the list. Someone > else may be able to help, and someone else may be helped in the future > if it lands in the list archives. Sorry for that ... am using windows XP (windows 5.1) , am changed the http.conf file as per you

Re: Premature end of script headers

2007-06-12 Thread Mike Williams
Saravanan, Hi there. Please do a reply to all to keep this on the list. Someone else may be able to help, and someone else may be helped in the future if it lands in the list archives. On 6/12/07, saravanan Jagadeesan <[EMAIL PROTECTED]> wrote: Mike, Thanks for your info mike , i g

Re: Premature end of script headers

2007-06-08 Thread Mike Williams
ng the same error (500) includinghello world my web server is apache 2.2.4 These are the lines i found in my error-log [Thu Jun 07 11:27:17 2007] [error] [client 192.168.10.160] Premature end of script headers: hello.exe, referer: http://192.168.10.160/hello.html by

Re: Premature end of script headers

2007-06-05 Thread Mike Williams
[EMAIL PROTECTED] wrote: > Hello, > > i need to know the reasons for this error "Premature end of script > headers" i checked with my http header content-type:text/html ,but i > had not solved yet.. Often this happens when some error occurs in your code before you

Re: Premature end of script headers

2007-06-05 Thread Sean Davis
[EMAIL PROTECTED] wrote: > Hello, > > i need to know the reasons for this error "Premature end of script > headers" i checked with my http header content-type:text/html ,but i > had not solved yet.. Check your error_log file on your server to see if you are generatin

Premature end of script headers

2007-06-05 Thread saran . jegan
Hello, i need to know the reasons for this error "Premature end of script headers" i checked with my http header content-type:text/html ,but i had not solved yet.. let me know your suggestions thanks for your time -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: Headers("Location") in Perl??

2006-11-06 Thread ����ΰ
sorry, i forget print it print $cgi->redirect('...'); -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Headers("Location") in Perl??

2006-11-06 Thread ???
In php header("Location: www.blah.com") will goto http://www.blah.com. And in Perl CGI, you will use this script, please do not print any header information use CGI; my $cgi = new CGI; $cgi-> redirect('http://www.blah.com'); -- I want a job about Perl, please visit my resume at http://wanmyome.

Re: Headers("Location") in Perl??

2006-11-04 Thread David Dorward
to > goto another page in my system. In php I could use the > header("Location: www.blah.com") todo this, is there anything like that > in perl? You can just print them directly (since CGI expects headers followed by a blank line followed by message), or CGI.pm has a heade

Headers("Location") in Perl??

2006-11-04 Thread Richard Bagshaw
Hi Peeps, This may be an obvious question but I am new to perl and I need some advice. Basically I have written a script that makes some changes to a database when a drop down is selected, after this is done I then want to goto another page in my system. In php I could use the header("Locatio

Re: cgi script to capture http headers

2006-09-28 Thread Beginner
Hi On 28 Sep 2006 at 17:21, Kaushal Shriyan wrote: > Hi ALL > > I have a issue > > when i use script (test.cgi) > > #!/bin/bash > echo "Content-type: text/plain"; > echo > set > > I get all the http headers populated with the values correctly

cgi script to capture http headers

2006-09-28 Thread Kaushal Shriyan
Hi ALL I have a issue when i use script (test.cgi) #!/bin/bash echo "Content-type: text/plain"; echo set I get all the http headers populated with the values correctly but when I use the below script (test-cgi) #!/bin/sh # disable filename globbing set -f echo Content-type:

Re: Help with issuing the correct mime headers

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Help with issuing the correct mime headers

2006-01-18 Thread Dermot Paikkos
Hi, I have a script that outputs a file as text to the browser but there are some inconsistencies in how the browser responds to script. When the script is run under FF it displays the text and you can choose to 'Save the page' from the file menu and it is saved as text. Under IE the page is n

Re: About unoffical HTTP headers

2005-04-26 Thread Shu Cao
Hi, Charles K. Clarkson: > This is the first I have heard there were unofficial HTTP headers > and you have me curious. Why would you want to see these? Are you > writing a low level server script? We just use HTTP protocol transferring our customized messages. The clien

Re: About unoffical HTTP headers

2005-04-26 Thread Shu Cao
Hi, Wiggins d'Anconia: > This is going to depend on the web server, as it is the software parsing > the HTTP request, it just passes execution to the CGI and sets up the > environment before hand. So it is up to the web server software to set > in the environment the extra he

RE: About unoffical HTTP headers

2005-04-26 Thread Charles K. Clarkson
nd found nothing but some standard HTTP : headers like "Accept", "User-Agent", etc.. This is the first I have heard there were unofficial HTTP headers and you have me curious. Why would you want to see these? Are you writing a low level server script? TIA, Charles K. Clar

Re: About unoffical HTTP headers

2005-04-26 Thread Wiggins d'Anconia
e problem, how can Perl > CGI program get the unofficial HTTP header value like "x: y". I examine > the %ENV hash, and found nothing but some standard HTTP headers like > "Accept", "User-Agent", etc.. > > And I check the CGI.pm module too, seems there is

About unoffical HTTP headers

2005-04-26 Thread Shu Cao
al HTTP header value like "x: y". I examine the %ENV hash, and found nothing but some standard HTTP headers like "Accept", "User-Agent", etc.. And I check the CGI.pm module too, seems there is no method to get the unofficial HTTP headers. If you guys know the HOWT

RE: Premature end of script headers

2005-02-08 Thread Sethi, Pradeep
esday, February 08, 2005 10:28 AM To: 'vishwas bhakit'; beginners-cgi@perl.org Subject: RE: Premature end of script headers vishwas bhakit wrote: > hello, > > I am getting following error. > > Premature end of script headers > > Can anybody plz tell me > what is the

RE: Premature end of script headers

2005-02-08 Thread Bob Showalter
vishwas bhakit wrote: > hello, > > I am getting following error. > > Premature end of script headers > > Can anybody plz tell me > what is the cause of this. When the webserver runs your CGI script, it parses the output, looking for the MIME headers, followed by a bla

Re: Premature end of script headers

2005-02-08 Thread Lawrence Statton
> --0-533587995-1107883018=:92269 > Content-Type: text/plain; charset=iso-8859-1 > Content-Transfer-Encoding: 8bit > > hello, > > I am getting following error. > > Premature end of script headers > > Can anybody plz tell me > what is the cause of this. &g

RE: Premature end of script headers

2005-02-08 Thread Moon, John
Subject: Premature end of script headers hello, I am getting following error. Premature end of script headers Can anybody plz tell me what is the cause of this. Have you tried to execute the script from the command line? That is sometimes helpful in finding the error... jwm -- To

Premature end of script headers

2005-02-08 Thread vishwas bhakit
hello, I am getting following error. Premature end of script headers Can anybody plz tell me what is the cause of this. Thnx in advance Yahoo! India Matrimony: Find your life partneronline.

Re: Premature end of script headers

2005-02-08 Thread Chris Devers
On Tue, 8 Feb 2005, vishwas bhakit wrote: > I am getting [the] following error. > > Premature end of script headers > > Can anybody [please] tell me > what is the cause of this[question mark] > > [Thanks] in advance As noted in the last reply to you, it i

Re: please help to solve the problem: "Error message: Premature end of script headers"

2004-07-09 Thread Wiggins d Anconia
> Hi all, > > I have received the respond from the Apache stated that: > > "The server encountered an internal error and was unable to complete your request. > > Error message: > Premature end of script headers: testing.cgi > > If you think this is

Re: please help to solve the problem: "Error message: Premature end of script headers"

2004-07-09 Thread Sean Davis
all, > > I have received the respond from the Apache stated that: > > "The server encountered an internal error and was unable to complete your > request. > > Error message: > Premature end of script headers: testing.cgi > > If you think this is a server err

please help to solve the problem: "Error message: Premature end of script headers"

2004-07-09 Thread nobody
Hi all, I have received the respond from the Apache stated that: "The server encountered an internal error and was unable to complete your request. Error message: Premature end of script headers: testing.cgi If you think this is a server error, please contact the webmaster. " P

Re: HTML headers with CGI.pm

2003-09-25 Thread Shaun Fryer
> ### > # Start HTML OUT > ### > print header; > print start_html( -title => $title ); > print qq|\n|; > > How do I move the Pragam inside the ... The tag should be declared inside start_html() as follows. print header, start_html(-ti

Re: HTML headers with CGI.pm

2003-09-24 Thread Todd W.
"David Gilden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > Having some issues with cgi.pm > Here is my PERL: > > ### > # Start HTML OUT > ### > print header; > print start_html( -title => $title ); > print qq|\n|; > > > and here

HTML headers with CGI.pm

2003-09-24 Thread David Gilden
Hello, Having some issues with cgi.pm Here is my PERL: ### # Start HTML OUT ### print header; print start_html( -title => $title ); print qq|\n|; and here is the output: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/199

Re: Premature end of script headers Linux with Fat32 filesystem

2003-08-20 Thread Tim Blanchard
he only filesystem > both OS's play nicely with). I keep the data that I want shared stored > on this FAT32 partition, including all the files for my websites. > Whenever I try to access a script off of the FAT32 partition, I get a > 'Premature end of script headers' erro

Re: Premature end of script headers Linux with Fat32 filesystem

2003-08-18 Thread zentara
em >both OS's play nicely with). I keep the data that I want shared stored >on this FAT32 partition, including all the files for my websites. >Whenever I try to access a script off of the FAT32 partition, I get a >'Premature end of script headers' error message. I can

Premature end of script headers Linux with Fat32 filesystem

2003-08-14 Thread Tim Brom
this FAT32 partition, including all the files for my websites. Whenever I try to access a script off of the FAT32 partition, I get a 'Premature end of script headers' error message. I can copy the script verbatim onto the ext3 filesystem and it works fine, and it works fine on my we

Re: Problem with script headers.

2003-06-21 Thread Todd W.
ient 64.207.81.146] Premature end of script headers: /cgi-bin/index.cgi Thats why it didnt work. Without code, it is impossible for us to determine the solution to your specific problem. The most anyone can say is that a process named index.cgi tried to open a file and couldnt because there were not

RE: Problem with script headers.

2003-06-20 Thread Bob Showalter
-- > From: "Bob Showalter" <[EMAIL PROTECTED]> > To: "'Nicholas Davey'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Wednesday, June 18, 2003 8:41 AM > Subject: RE: Problem with script headers. > > > > Nicholas Davey wrote

Re: Problem with script headers.

2003-06-18 Thread Nicholas Davey
www.vadtec.net [EMAIL PROTECTED] - Original Message - From: "Bob Showalter" <[EMAIL PROTECTED]> To: "'Nicholas Davey'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, June 18, 2003 8:41 AM Subject: RE: Problem with script headers

RE: Problem with script headers.

2003-06-18 Thread Bob Showalter
rver > error log. > > > > When I check the error log, I get this back (this is the last > three line of the error log, cause the last 50 entries are all the > same): > > > > failed to open log file > fopen: Permission denied > [Fri Jun 1

RE: Problem with script headers.

2003-06-18 Thread Scot Robnett
Nicholas, Then get a book, or several. We don't read minds. We're glad to help if there's something to look at. Arguing about it isn't going to solve your problem. If you want a complete list of what causes "premature end of script" headers, read "CGI

Re: Problem with script headers.

2003-06-17 Thread Nicholas Davey
returning the proper HTML headers/content-type(s), and I only have this problem with one file, which I have deleted (shreaded) serveral times, re-written that one file, and still get this error. It seems to me there is a problem with the script, not the HTML output. Someone refered to fopen() being

RE: Problem with script headers.

2003-06-17 Thread Charles K. Clarkson
Nicholas Davey <[EMAIL PROTECTED]> wrote: : : I hope I gave you enough info to maybe see : why index.cgi is the only freaking page that : doesnt work. IMO you have two choices. 1 - Hire a programmer to debug it and have her sign a confidentiality agreement. 2 - Post the code for index.c

Re: Problem with script headers.

2003-06-17 Thread Nicholas Davey
uot; <[EMAIL PROTECTED]> Newsgroups: perl.beginners.cgi To: "Nicholas Davey" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, June 15, 2003 1:26 AM Subject: RE: Problem with script headers. > What are the permissions set to? Have you chmod'd to 755 (-r-x)? Permissi

Re: Problem with script headers.

2003-06-15 Thread drieux
On Friday, Jun 13, 2003, at 07:45 US/Pacific, Nicholas Davey wrote: [..] failed to open log file fopen: Permission denied [Fri Jun 13 07:45:57 2003] [error] [client 64.207.81.146] Premature end of script headers: /cgi-bin/index.cgi Don't worry about the path. All

Re: Problem with script headers.

2003-06-15 Thread Kristofer Hoch
mission denied > [Fri Jun 13 07:45:57 2003] [error] [client 64.207.81.146] > Premature end of script headers: reasons>/cgi-bin/index.cgi > > Don't worry about the path. All that matters is what could be > wrong. If my syntax in 100% correct, and I return the prope

RE: Problem with script headers.

2003-06-14 Thread Scot Robnett
What are the permissions set to? Have you chmod'd to 755 (-r-x)? Permission will be denied unless the script is set to executable. How can we verify that your content headers are perfect unless you post the code? You tell us not to worry about the path and ask us to figure out what could be

Problem with script headers.

2003-06-14 Thread Nicholas Davey
of the error log, cause the last 50 entries are all the same): failed to open log file fopen: Permission denied [Fri Jun 13 07:45:57 2003] [error] [client 64.207.81.146] Premature end of script headers: /cgi-bin/index.cgi Don't worry about the path. All

RE: The very un-useful 'premature end of script headers' error message

2003-04-02 Thread Scot Robnett
Not really. If your form allows uploads, your form allows uploads. That's where DoS comes into play. Disguising the location of your code is a start, but you still have to figure out what you're going to do if someone tries to paste rogue code into your form or hit you with an obnoxiously large upl

Re: The very un-useful 'premature end of script headers' error message

2003-04-01 Thread Cool Hand Luke
> The answer to your question is: Be afraid, be very afraid. A wiley cracker > may be able to run system commands if you allow him/her to upload code. Even > without knowing that much, they could simply create a script that generates > a big enough upload to cause DoS (denial of service) on your se

Re: The very un-useful 'premature end of script headers' error message

2003-03-31 Thread Octavian Rasnita
y's Center: http://teddy.fcc.ro/ Email: [EMAIL PROTECTED] - Original Message - From: "Scot Robnett" <[EMAIL PROTECTED]> To: "Cool Hand Luke" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, March 31, 2003 10:57 PM Subject: RE: The very un-u

RE: The very un-useful 'premature end of script headers' error message

2003-03-31 Thread Scot Robnett
: Monday, March 31, 2003 1:38 PM To: fliptop Cc: [EMAIL PROTECTED] Subject: Re: The very un-useful 'premature end of script headers' error message > just because you don't need to parse any binaries doesn't mean your users > won't try to submit one. > > don&#x

Re: The very un-useful 'premature end of script headers' error message

2003-03-31 Thread Cool Hand Luke
> just because you don't need to parse any binaries doesn't mean your users > won't try to submit one. > > don't forget anyone can create any kind of form that posts to your cgi. > so there's nothing stopping me from creating a form like this: > > http://coolhandlukesite/cgi-bin/script.cgi"; > enc

Re: The very un-useful 'premature end of script headers' error message

2003-03-31 Thread fliptop
On Sun, 30 Mar 2003 at 22:43, Cool Hand Luke opined: [reply cc'd to group] CHL:> and to offer one example as an answer to your question, how would you CHL:> parse a binary file uploaded to your script using your split(/[&;]/, CHL:> $submission) code? CHL: CHL:Not parsing any binaries, just simple

Re: The very un-useful 'premature end of script headers' error message

2003-03-30 Thread fliptop
On Sun, 30 Mar 2003 at 12:53, Cool Hand Luke opined: CHL:Now, why not? Also, notice that the code I used is not what you have quoted. CHL:Really am curious as to why not, though. because someone else has already written a pretty solid module for parsing query strings, and it's been tried and tes

Re: The very un-useful 'premature end of script headers' error message

2003-03-30 Thread Cool Hand Luke
uot;Cool Hand Luke" <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 5:44 PM Subject: Re: The very un-useful 'premature end of script headers' error message > >>>>> "Cool" == Cool Hand Luke <[EMAIL PROTECTED]> writes: > > Cool> Hello All,

RE: The very un-useful 'premature end of script headers' error message

2003-03-29 Thread Bill Burke
t: Re: The very un-useful 'premature end of script headers' error message On Fri, Mar 28, 2003 at 09:33:19PM -0500, Bill Burke ([EMAIL PROTECTED]) said something similar to: > I added a chat room at my site http://www.speakerscorner.us . You are > welcome there and we can discuss PER

Re: The very un-useful 'premature end of script headers' error message

2003-03-29 Thread Kevin Meltzer
nt to miss anything That's what IRC is for :) Cheers, Kevin > > -Original Message- > From: Randal L. Schwartz [mailto:[EMAIL PROTECTED] > Sent: Friday, March 28, 2003 8:44 PM > To: [EMAIL PROTECTED]; Cool Hand Luke > Subject: Re: The very un-useful 'p

RE: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Bill Burke
. Schwartz [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 12:34 AM To: Scot Robnett Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Cool Hand Luke Subject: Re: The very un-useful 'premature end of script headers' error message >>>>> "Scot" == Scot Robnett <[

Re: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Randal L. Schwartz
> "Scot" == Scot Robnett <[EMAIL PROTECTED]> writes: Scot> Somebody better tell Nathan Patwardhan, Ellen Siever, & Stephen Scot> Spainhour then. I'm looking at the 2nd edition of PERL IN A Scot> NUTSHELL (and that is exactly how it's printed) right now. I don't have a copy of the book at han

RE: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Bill Burke
very un-useful 'premature end of script headers' error message Somebody better tell Nathan Patwardhan, Ellen Siever, & Stephen Spainhour then. I'm looking at the 2nd edition of PERL IN A NUTSHELL (and that is exactly how it's printed) right now. I knew the differe

RE: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Scot Robnett
From: Randal L. Schwartz [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 11:18 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; Cool Hand Luke Subject: Re: The very un-useful 'premature end of script headers' error message >>>>> "Bill" == Bill Burke <[EMAIL P

RE: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Bill Burke
ay, March 29, 2003 12:18 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; Cool Hand Luke Subject: Re: The very un-useful 'premature end of script headers' error message >>>>> "Bill" == Bill Burke <[EMAIL PROTECTED]> writes: Bill> Thanks for the edification. Yo

Re: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Randal L. Schwartz
> "Bill" == Bill Burke <[EMAIL PROTECTED]> writes: Bill> Thanks for the edification. You have been one of the most prolific Bill> contributors to the group, so I take no umbrage. Truly, you write it as Bill> perl, but the books label it PERL (Practical Extraction and Reporting Bill> Language).

RE: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Bill Burke
not your expertise. -Original Message- From: Randal L. Schwartz [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 9:29 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; Cool Hand Luke Subject: Re: The very un-useful 'premature end of script headers' error message >>&g

Re: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Randal L. Schwartz
> "Bill" == Bill Burke <[EMAIL PROTECTED]> writes: Bill> I added a chat room at my site http://www.speakerscorner.us . You are Bill> welcome there and we can discuss PERL in real time. Don't quit the user Bill> group though, you won't want to miss anything And there's no such thing as "PERL".

RE: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Bill Burke
28, 2003 8:44 PM To: [EMAIL PROTECTED]; Cool Hand Luke Subject: Re: The very un-useful 'premature end of script headers' error message >>>>> "Cool" == Cool Hand Luke <[EMAIL PROTECTED]> writes: Cool> Hello All, Cool> I think I figured it out

Re: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Randal L. Schwartz
> "Cool" == Cool Hand Luke <[EMAIL PROTECTED]> writes: Cool> Hello All, Cool> I think I figured it out, (so far). I 'm pretty sure that it has to do Cool> with perl 5.003 disliking the looping with the "my $pair" syntax. Cool> As a work around, I changed this Cool> foreach my $pai

Re: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Cool Hand Luke
EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 1:02 AM Subject: Re: The very un-useful 'premature end of script headers' error me ssage > > 1. You *MUST* examine the server's error log. &quo

Re: The very un-useful 'premature end of script headers' error me ssage

2003-03-28 Thread Cool Hand Luke
> 1. You *MUST* examine the server's error log. "Prematue end of script > headers" is just a generic message put out by Apache when it couldn't find > the response header your script should have put out. Any error messages > output by Perl or your script will be f

RE: The very un-useful 'premature end of script headers' error me ssage

2003-03-27 Thread Bob Showalter
Cool Hand Luke wrote: > Hi there, > I am having the toughest time trying to run perl scripts on this > Stronghold Apache SSL server I am working with for my company. > Everything I run returns the same 'premature end of script headers' > error message. This has happen

Re: The very un-useful 'premature end of script headers' error message

2003-03-26 Thread Cool Hand Luke
nything in the error logs. Thanks! Luke - Original Message - From: "Dennis G. Wicks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 26, 2003 7:04 PM Subject: Re: The very un-useful 'premature end of script headers' error message >

Re: The very un-useful 'premature end of script headers' error message

2003-03-26 Thread Dennis G. Wicks
gt;, [EMAIL PROTECTED] > Subject: Re: The very un-useful 'premature end of script headers' error > message > > Hi Scott, > Thanks for the reply. I tried using your code (I'm a beginner with the > cgi module so please let me know if I made any obvious errors) and

Re: The very un-useful 'premature end of script headers' error message

2003-03-26 Thread Cool Hand Luke
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, March 26, 2003 4:13 PM Subject: RE: The very un-useful 'premature end of script headers' error message > A couple of things, and I don't know if this affects Stronghold and I'm not > sure with which bro

RE: The very un-useful 'premature end of script headers' error message

2003-03-26 Thread Scot Robnett
: Cool Hand Luke [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 5:52 PM To: [EMAIL PROTECTED] Subject: Re: The very un-useful 'premature end of script headers' error message BTW, that's Stronghold/Apache version 1.3.4 if that helps... Thanks Again Luke - Original Messag

Re: The very un-useful 'premature end of script headers' error message

2003-03-26 Thread Cool Hand Luke
BTW, that's Stronghold/Apache version 1.3.4 if that helps... Thanks Again Luke - Original Message - From: "Cool Hand Luke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 26, 2003 3:41 PM Subject: The very un-useful 'premature end of scri

The very un-useful 'premature end of script headers' error message

2003-03-26 Thread Cool Hand Luke
Hi there, I am having the toughest time trying to run perl scripts on this Stronghold Apache SSL server I am working with for my company. Everything I run returns the same 'premature end of script headers' error message. This has happened with every script I've run except the m

RE: Premature end of script headers

2003-03-24 Thread Dennis G. Wicks
Greetings; That will not cause the problem using Apache and IE 6.0 It might in other combinations, but generally spaces are not significant if other punctuation is doing the job. Check the error logs for file not found which is generally a permissions problem. Also, for a valid path-to-perl in t

Re: Premature end of script headers

2003-03-24 Thread Ovid
Hi Kim, I hope you don't take any of this personally. It's certainly not meant that way. --- Kim Forbes <[EMAIL PROTECTED]> wrote: > #!/usr/bin/perl-w There should be a space after the -w. > print "Content-type:text/html\n\n"; There should be a space after the colon. This is one of the reas

RE: Premature end of script headers

2003-03-24 Thread Scot Robnett
Yes, but it's not correct, there's your premature end of script header right there. You have: print "Content-type:text/html\n\n"; It should be: print "Content-type: text/html\n\n"; - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -- To unsubscribe, e-mail: [

RE: Premature end of script headers

2003-03-24 Thread Scot Robnett
Kim, It appears to be the header issue I mentioned before. Before print

Re: Premature end of script headers

2003-03-24 Thread Kim Forbes
ent: Monday, March 24, 2003 10:50 AM Subject: RE: Premature end of script headers > Kim, > > If you're trying to get the results to print in a browswer, you have to send > the content type to the browser in the headers. Did you do either of these > things prior to whatever r

Re: Premature end of script headers

2003-03-24 Thread Kim Forbes
Sure, Here is the code. When I tried it out at home, I uploaded it to Tripod (The free web-creation site.) I must add that I tested everything, but the mail portion of the program (Tripod requires a special Tripod Mail module that I felt was too much work for what I was trying to do. I may be wron

Re: Premature end of script headers

2003-03-24 Thread Ovid
the cgi-bin folder. Now I get a "Premature end of script headers" message. Can > anyone tell me > more about this error message and reasons for it appearing. Hi Kim, Could you please show us the code? Also, when you say you tried it out at home, did you run it from a command line or

RE: Premature end of script headers

2003-03-24 Thread Scot Robnett
Kim, If you're trying to get the results to print in a browswer, you have to send the content type to the browser in the headers. Did you do either of these things prior to whatever routine prints your results? use CGI; $query = new CGI; print $query->header; or print "

Premature end of script headers

2003-03-24 Thread Kim Forbes
Hello, I created my first Perl script from book and internet sources. I tried it out at home and it worked fine. I then uploaded it to work's Apache server, changed the permissions, and put it in the cgi-bin folder. Now I get a "Premature end of script headers" message. Can

premature end of script headers

2003-02-28 Thread fudge714
when running my script from the command line, it generates the html fine, however when I upload it to my hosters' server (apache on linux), I get an internal server error. when checking the log, I find: "premature end of script headers" and "no such file or directory"

RE: Premature end of script headers

2003-02-06 Thread Bob Showalter
[redirected to beginners-cgi list] zegdatwel wrote: > hi, > > "Premature end of script headers" > > what can this mean...it's in the error log. When does this > happen? I got error 500 when executing script. It means your script ended (normally or abnormal

Re: HTTP headers

2003-01-16 Thread Philip Pawley
Thanks William, The server is Apache. I was calling the script using an SSI in an html page: I just tried calling the script directly with the browser and that did work. I suppose this means that you can't alter the headers using a script called with a virtual include. Is that

Re: HTTP headers

2003-01-16 Thread William McKee
=> 1 to tell the server not to generate headers because you are doing it yourself. I've never had a need to do this myself. Good luck, William -- Knowmad Services Inc. http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: HTTP headers

2003-01-15 Thread Octavian Rasnita
You can use the CGI perl module to print headers, or you can print them directly like: print "Content-type: text/plain\n\n"; Teddy, Teddy's Center: http://teddy.fcc.ro/ Email: [EMAIL PROTECTED] - Original Message - From: "Philip Pawley" <[EMAIL PROTECTED]&g

Re: HTTP headers

2003-01-14 Thread William McKee
On Tue, Jan 14, 2003 at 09:05:42PM +, Philip Pawley wrote: > Can I add an HTTP header to my web-site's server's response with perl? > (It isn't my server). The server is running perl 5.6.1. If I can get > it to work, I want to start using "Expires:" heade

  1   2   >