in reply to gopher server in < 1024B
I think it's generally a good idea to use \015\012 instead of \r\n when doing something such as this (i.e. network coding). The reason is \n can change depending on what platform you're running. Hopefully this won't push you past the 1024 byte limit. 8^)
For reference, this is documented in perlop, under the "Quote and Quote-like Operators" section, in the paragraph starting with "All systems use the"