Complete.Org: Mailing Lists: Archives: gopher: January 2009:
[gopher] How to handle lines beginning by a dot?
Home

[gopher] How to handle lines beginning by a dot?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: gopher@xxxxxxxxxxxx
Subject: [gopher] How to handle lines beginning by a dot?
From: Mateusz Viste <mateusz@xxxxxxxxxxxxxxxx>
Date: Wed, 28 Jan 2009 20:58:41 +0100
Reply-to: gopher@xxxxxxxxxxxx

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everybody!

The Gopher RFC (1436) contains the following note:

"Lines beginning with periods must be prepended with an extra period to ensure 
that the transmission is not terminated early. The client should strip extra 
periods at the beginning of the line."

I do not understand what does it exactly mean...
If I serve a text file which has a line like ".Blah!", how should I process it? 
I understand that the problem could occur if the client is silly enough to 
close the connection when it finds a dot character after a CR/LF...

Another question - How should I handle text files which contain a line with 
only a dot (".")?

Any suggestions/hints will be appreciated ;-)

Best regards,
Mateusz Viste
- -- 
You'll find my public OpenPGP key at gopher://gopher.viste-family.net/1/PGP
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iQEcBAEBAgAGBQJJgLj3AAoJEC30Ty9xnkvbxugIAJePLlIIVDMvvNc5NpSWgAe8
lx06BlwG6sLhBZgi049KtNeubbjxH0zhNXftH5HR0sOio1idWPVyTQbYmlzVdNEp
z/nsFbtnX2JfrgcVLJvT5DLpHwdJzW+1Q0+hFMtYWyfZnas1n1H68yQ+u5C9iYDE
OwLVzUWtdzWjbhFtDTQCKKjiRgLf31A2dSTqASYL04mo+0h8yf/IOHdSkquFF0TS
h33+RAEUdi5vZHG2/6v2O+o02U6vSH8etSiY+96NE5XTNyGbHOLxEd1+EmBATqqC
xtyM5pozHTdR34GLJthrXwngwp3FLj7Rpl766cSznBhf9gYJu1Y1LNH5HwZ8XjU=
=48jR
-----END PGP SIGNATURE-----



[Prev in Thread] Current Thread [Next in Thread]