Q&A

Q1:The Telnet example doesn't work.
A1: If Telnet fails to connect, make sure you're using Telnet against the Web server's name and that you're using the correct port, probably 80. You might need to look at the Telnet client's documentation to set the port number properly.

Another common problem is that you can't see yourself type. Some Telnet clients echo the characters to you, and some do not. Don't worry about this; just type carefully. The characters are still being transmitted carefully. After you type the GET line, make sure that you press the Enter key twice.

Q2:How do I put more than one piece of information in an HTTP cookie?
A2: The easiest way is to combine multiple items in a single cookie separated by a field separator, as in ...

Get SAMS Teach Yourself Perl in 24 Hours THIRD EDITION now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.