Change to HTTP Data Logging Protocol

Requests for future functionality

Moderator: Mattk

Post Reply
rune
Expert Boarder
Expert Boarder
Posts: 104
Joined: Wed Jun 24, 2009 10:51 pm

Change to HTTP Data Logging Protocol

Post 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
User avatar
idociko
Junior Boarder
Junior Boarder
Posts: 39
Joined: Tue Jan 24, 2012 6:16 pm
Location: Cikó, Hungary
Contact:

Re: Change to HTTP Data Logging Protocol

Post 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>
Post Reply