Re: Problem with mod_perl/apache Headers

[prev] [thread] [next] [Date index for 2005/02/24]

From: Torsten Foertsch
Subject: Re: Problem with mod_perl/apache Headers
Date: 19:18 on 24 Feb 2005
--nextPart4629750.CtKH7co0tJ
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Thursday 24 February 2005 19:48, Phil's Yahoo wrote:
> [root@p15162004 root]# curl -v www.anfmailorder.com/proxy/test.pl
> * About to connect() to www.anfmailorder.com:80
> * Connected to p15162004.pureserver.info (217.160.184.86) port 80
> =A0> GET /proxy/test.pl HTTP/1.1
> User-Agent: curl/7.9.8 (i386-redhat-linux-gnu) libcurl 7.9.8 (OpenSSL
> 0.9.7a) (ipv6 enabled)
> Host: www.anfmailorder.com
> Pragma: no-cache
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
the next (empty) line is the last line of the request
>
and here comes the first one of the answer. The status line ("HTTP/1.1=20
200 OK" or so) is missing.
> Content-type: text/html
>
> Hello, world!
> * Closing connection #0
> [root@p15162004 root]#
> END
>
> any ideas how to remove this extra line or how to append the header
> onto the end of the headers???

Not if you don't reveal more of your setup and test.pl.

I think, test.pl is simply printing "Content-type: text/html\n\n...". Is=20
it running under mod_perl or mod_cgi? Apache::Registry? SetHandler=20
modperl or perl-script? mp1 or mp2?

If mp2 this may help:
  http://perl.apache.org/docs/2.0/user/config/config.html#C_ParseHeaders_

Torsten

--nextPart4629750.CtKH7co0tJ
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBCHiiGwicyCTir8T4RAvuRAJ9qF5zbyusi/nUkzAg0GkbFQhj6UQCgyJFp
/OWGeifF/oQUuqLxgx9qLLc=
=vuym
-----END PGP SIGNATURE-----

--nextPart4629750.CtKH7co0tJ--

HTML code shown not HTML
Phil's Yahoo 17:18 on 24 Feb 2005

Re: HTML code shown not HTML
Torsten Foertsch 17:46 on 24 Feb 2005

Problem with mod_perl/apache Headers
Phil's Yahoo 18:48 on 24 Feb 2005

Re: Problem with mod_perl/apache Headers
Torsten Foertsch 19:18 on 24 Feb 2005

Generated at 17:56 on 01 Mar 2005 by mariachi v0.52