i have traced the problem with the headers by using "curl -v" on the address
and i think the problem is because after apache has sent the headers it inserts a empty
line so that when i print headers in perl i just writes the text and egnores the headers.
the following is the exact output of the page.
START
[EMAIL PROTECTED] 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
> 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, */*


Content-type: text/html

Hello, world!
* Closing connection #0
[EMAIL PROTECTED] root]#
END

any ideas how to remove this extra line or how to append the header onto the end of the headers???




Reply via email to