[Tutor] First python-script: a little network client
Deirdre Saoirse
deirdre@deirdre.net
Thu, 3 Feb 2000 16:55:56 -0800 (PST)
On Fri, 4 Feb 2000, Jochen Haeberle wrote:
> thanks a lot - that was a fast and perfect help! I was not sure what
> went wrong at what place, so I did not see the most obvious things!
It happens. :)
> >1) each request is supposed to be followed by a carriage return and line
> >feed. This is \r\n, not \n.
>
> That' the most problematic error I guess. I thoghut \n is equal to
> <cr><lf> (at least on my Mac)
Macs use \r only. Windows uses \r\n. Unix uses \n only.
As a result, most protocols state explicitly what is expected at the end
of the line. In some cases if you're writing a server, you want to write
something that accepts any of the three conventions (regardless of what is
specified).
> Thanks again
No problem!
--
_Deirdre * http://www.linuxcabal.net * http://www.deirdre.net
"Mars has been a tough target" -- Peter G. Neumann, Risks Digest Moderator
"That's because the Martians keep shooting things down." -- Harlan Rosenthal
<Harlan.Rosenthal@Dialogic.com>, retorting in Risks Digest 20.60