Re: Problem with mod_perl/apache Headers
[prev]
[thread]
[next]
[Date index for 2005/02/24]
--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--