One mistake I see is that you use \n as line terminator. The HTTP specification explicitely defines the line separator to be CRLF (\015\012). This may not be the problem that's biting you though, since most servers are lenient in what they accept, and if you're on windows \n equals CRLF. It's probably something you should fix anyway though.
Another possibility is of course that you've already printed an incompatible header earlier in your program, but without more source that's just conjecture.
In reply to Re: HTTP Errors and perl
by Crackers2
in thread HTTP Errors and perl
by Eagle_f90
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |