in reply to Re: replacement for LWP::Simple ?
in thread replacement for LWP::Simple ?

Since your code works correctly for us, but not for you, you will have to do the debugging. You may need to tell LWP to use a proxy; check your web-browser to see whether it has a proxy configured. Here are some documents on LWP proxy use and debugging:

Also, from your "Content-type: text/html\n\n" statement, I take it that you are testing this program as a CGI script on a web server. Can you test it from the command line instead? If so, you will be able to see error output that would have been hidden by the web server. Get as much working from the command line as you can, and only then turn it into a CGI; much aching of the head will be avoided.