Page 1 of 1

Change to HTTP Data Logging Protocol

Posted: Thu Apr 12, 2012 3:18 pm
by rune
In the "HTTP Data Logging Protocol, Version 1.2" it states that:
The logger should reply data wrapped as TEXT/PLAIN in one of two types (the requesting program decides on the type)
flat text, line-based (each response is terminated by a line feed).○ flat text, line-based (each response is terminated by a line feed).
As I understand it, the response should also be terminated with a <CR>. Currently I'm therefore unable to retrieve an HTTP response as the software I'm using complaints about the missing <CR>
I would like the protocol to have added the missing <CR> to be compliant. What do you think Boris?

Links:
http://stackoverflow.com/questions/3142 ... -violation

Re: Change to HTTP Data Logging Protocol

Posted: Thu May 03, 2012 1:52 pm
by idociko
To separate the lines of a HTTP request and place each line in a new variable (for further analyses) I use:
$string = http_request
list($string1, $tring2, etc.) = explode(PHP_EOL, $string);
So use PHP_EOL instead of <CR>