Scamper woes - was: genuine squeak newbie
Bert Freudenberg
bert at isgnw.CS.Uni-Magdeburg.De
Tue Jun 22 05:25:09 UTC 1999
On Mon, 21 Jun 1999, Tim Olson wrote:
> So is CrLf response line termination mandatory in HTML, or is it just the
> most common?
HTML has nothing to do with this. It's all about HTTP - the network
protocol commonly used for transmitting HTML files.
>From RFC 2068 (http://www.faqs.org/rfcs/rfc2068.html):
2.2 Basic Rules
HTTP/1.1 defines the sequence CR LF as the end-of-line marker for all
protocol elements except the entity-body (see appendix 19.3 for
tolerant applications). The end-of-line marker within an entity-body
is defined by its associated media type, as described in section 3.7.
19.3 Tolerant Applications
The line terminator for message-header fields is the sequence CRLF.
However, we recommend that applications, when parsing such headers,
recognize a single LF as a line terminator and ignore the leading CR.
So we should be nice and look only for LF :-)
/bert
--
Bert Freudenberg Department of
Simulation and
Computer Graphics
http://isgwww.cs.uni-magdeburg.de/isg/bert.html Univ. of Magdeburg
More information about the Squeak-dev
mailing list
|