in reply to HTTP Header not working

It is a sign that you should be using LWP. There's even LWP::Simple, which is so easy to use that it makes me cry tears of joy. Or perhaps it is a sign to read the HTTP protocol specs. I like the first option better, though.