Wiggins has asked for the wisdom of the Perl Monks concerning the following question:
The line in question is marked with a comment.... . . print $sock "POST https://$host/ HTTP/1.1\r\n"; print $sock "Connection: close", "\r\n"; print $sock "Host: ", $host, "\r\n"; print $sock "Content-length: ", length $req, "\r\n"; print $sock "Content-type: application/json\r\n"; #RFC 4627 print $sock $req, "\r\n\r\n"; print while <$sock>; # << ??????? close $sock;
It is always better to have seen your target for yourself, rather than depend upon someone else's description.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A curiosity
by AppleFritter (Vicar) on Aug 12, 2014 at 18:22 UTC | |
|
Re: A curiosity
by tobyink (Canon) on Aug 13, 2014 at 06:35 UTC |