[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Perl sockets on Mac



At 12.29 97/2/13, Vlad Ionesco wrote:
>I would greatly appreciate some help on the use of sockets on the
>Mac. I need to make a HTTP request and the code below works perfectly
>well on our Sun, but not on my Mac.
[...]
>print SOCKET "GET $url\n";
>print STDOUT while (<SOCKET>);
>close SOCKET;

Try doing something with that linebreak ... start with "\012\015" instead
of "\n".  I can never remember exactly what it should be and what, but this
should work.

#================================================================
Chris Nandor                                      pudge@pobox.com
PGP Key 1024/B76E72AD                           http://pudge.net/
Keyfingerprint = 08 24 09 0B CE 73 CA 10  1F F7 7F 13 81 80 B6 B6