[oclug] access to a website with PERL

Bob Lockie bjlockie at lockie.ca
Thu Apr 22 14:38:30 EDT 2004


> I am trying to access a web site with PERL.
> 
> I can telnet to the site but when I do it from PERL, I get:
> HTTP/1.1 400 Bad Request
> 
> The code is at:
> http://www.lockie.ca/test/ip.pl

I changed the code to use "\r\n" instead of "\n" (it didn't work with 
\n\r) and it works.
Can someone please explain that to me?




More information about the OCLUG mailing list