server Error 500: howto examine what apache got
Hi,
I get an error "Premature end of script headers:"
Now, I know that apache get some wrong code,
but I would like to get (to log in a file) this
data which apache gets.
Its a perl/cgi script which executes a php script and sends the result back.
How can I "sniff" what apache gets back from a cgi (or php script)??
I didn't find information about this in the wiki or in the documentation,
but other people get 500 errors too ... so there must be any possibilities
to examine such an error?
Anton
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Re: server Error 500: howto examine what apache got
--00504502c80101df810481d8ed67
Content-Type: text/plain; charset=ISO-8859-1
I guess you can use live http headers addon from firefox.
Thanks,
Charan
On Mon, Mar 15, 2010 at 8:41 AM, anton <antonxx [at] gmx.de> wrote:
> Hi,
>
> I get an error "Premature end of script headers:"
>
> Now, I know that apache get some wrong code,
> but I would like to get (to log in a file) this
> data which apache gets.
>
> Its a perl/cgi script which executes a php script and sends the result
> back.
>
> How can I "sniff" what apache gets back from a cgi (or php script)??
>
> I didn't find information about this in the wiki or in the documentation,
> but other people get 500 errors too ... so there must be any possibilities
> to examine such an error?
>
> Anton
>
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
> " from the digest: users-digest-unsubscribe [at] httpd.apache.org
> For additional commands, e-mail: users-help [at] httpd.apache.org
>
>
--00504502c80101df810481d8ed67
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I guess you can use live http headers addon from firefox.<div><br></div><di=
v><br clear=3D"all">Thanks,<br>Charan <br>
<br><br><div class=3D"gmail_quote">On Mon, Mar 15, 2010 at 8:41 AM, anton <=
span dir=3D"ltr"><<a href=3D"mailto:antonxx [at] gmx.de">antonxx [at] gmx.de</a>&g=
t;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0=
.8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I get an error "Premature end of script headers:"<br>
<br>
Now, I know that apache get some wrong code,<br>
but I would like to get (to log in a file) this<br>
data which apache gets.<br>
<br>
Its a perl/cgi script which executes a php script and sends the result back=
..<br>
<br>
How can I "sniff" what apache gets back from a cgi (or php script=
)??<br>
<br>
I didn't find information about this in the wiki or in the documentatio=
n,<br>
but other people get 500 errors too ... so there must be any possibilities<=
br>
to examine such an error?<br>
<br>
Anton<br>
<br>
<br>
<br>
------------------------------------------------------------ ---------<br>
The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL:<a href=3D"http://httpd.apache.org/userslist.html" target=3D"_b=
lank">http://httpd.apache.org/userslist.html</a>> for more info.<br>
To unsubscribe, e-mail: <a href=3D"mailto:users-unsubscribe [at] httpd.apache.or=
g">users-unsubscribe [at] httpd.apache.org</a><br>
=A0 " =A0 from the digest: <a href=3D"mailto:users-digest-unsubscribe=
[at] httpd.apache.org">users-digest-unsubscribe [at] httpd.apache.org</a><br>
For additional commands, e-mail: <a href=3D"mailto:users-help [at] httpd.apache.=
org">users-help [at] httpd.apache.org</a><br>
<br>
</blockquote></div><br></div>
--00504502c80101df810481d8ed67--
Re: server Error 500: howto examine what apache got
On Mon, Mar 15, 2010 at 11:41 AM, anton <antonxx [at] gmx.de> wrote:
> Hi,
>
> I get an error "Premature end of script headers:"
>
> Now, I know that apache get some wrong code,
> but I would like to get (to log in a file) this
> data which apache gets.
>
> Its a perl/cgi script which executes a php script and sends the result back.
>
> How can I "sniff" what apache gets back from a cgi (or php script)??
>
> I didn't find information about this in the wiki or in the documentation,
> but other people get 500 errors too ... so there must be any possibilities
> to examine such an error?
error log, http://httpd.apache.org/docs/2.1/mod/mod_cgi.html#scriptlog
--
Eric Covener
covener [at] gmail.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Re: server Error 500: howto examine what apache got
Hi Charan,
thanks (I will look at it) but I can see the headers
from and to firefox with firebug too.
But I don't thnik that this will help me:
I need to see what *apache* gets back from the cgi script!
Reason:
1. apache gets a bad header/ bad code where the header is not OK
2. apache generates a nice correct html output page with an error message
3. my firefox sees this webpage (but not the bad code, its too late here)
But again,
thanks for the fast response ;-)
Anton
Charan wrote:
> I guess you can use live http headers addon from firefox.
>
>
> Thanks,
> Charan
>
>
> On Mon, Mar 15, 2010 at 8:41 AM, anton <antonxx [at] gmx.de> wrote:
>
>> Hi,
>>
>> I get an error "Premature end of script headers:"
>>
>> Now, I know that apache get some wrong code,
>> but I would like to get (to log in a file) this
>> data which apache gets.
>>
>> Its a perl/cgi script which executes a php script and sends the result
>> back.
>>
>> How can I "sniff" what apache gets back from a cgi (or php script)??
>>
>> I didn't find information about this in the wiki or in the documentation,
>> but other people get 500 errors too ... so there must be any
>> possibilities to examine such an error?
>>
>> Anton
>>
>>
>>
>> ------------------------------------------------------------ ---------
>> The official User-To-User support forum of the Apache HTTP Server
>> Project. See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
>> " from the digest: users-digest-unsubscribe [at] httpd.apache.org
>> For additional commands, e-mail: users-help [at] httpd.apache.org
>>
>>
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org