in reply to Re: Learning HTTP headers
in thread Learning HTTP headers
However, "\r\n" is not the way a correct newline should be represented. \n does not have a direct, portable mapping to a specific ASCII code. Instead, it's Perl's representation of a "newline", which WILL vary depending upon the OS being used. Thus, while "\r\n" will give you the desired results under Unix, it will break even more under Windows or on MacOS. If you want to be strict about your newlines, you need to use "\015\012".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Learning HTTP headers
by snax (Hermit) on Nov 27, 2000 at 19:56 UTC |