HTTP, Sockets, and CRLF
| From: | Erik Price | Date: | Mon, 25 Mar 2002 16:34:30 +0000 |
| Subject: | HTTP, Sockets, and CRLF | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-90048@lists.php.net to get a copy of this message | ||
The standard way to end lines when communicating via HTTP is the CRLF (ASCII 13 & ASCII 10). But I write my PHP scripts using only LF (ASCII 10) for line endings. Why am I still able to write instructions to a socket -- does PHP automatically translate my line endings to CRLF, or is HTTP just flexible like that?
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
pricee@hhbrown.com