in reply to HTTP Header not working

It looks like you are sending an HTTP request. In an HTTP request, the header is separated by the body by a blank line. In the broken version, it starts with a blank line, and I'm betting the web server chokes (correctly) on that. The first line has to be the request line (that has the GET stuff in it).

LWP, or at least HTTP::Request can handle this for you.

--
brian d foy <bdfoy@cpan.org>