RFC2616 states:
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).
I didn't know about any automatic translation of \n to CRLF in previous versions. 9.4.6 doesn't seem to do this:
b monitor http_1.1_test_monitor list
monitor http_1.1_test_monitor {
defaults from http
recv "200 OK"
send "GET / HTTP/1.1\nHost: \nConnection: Close"
}
tcpdump shows the \n (0a) are not translated to \r\n (0d0a):
0x0030 18d5 dcf9 e6d2 22c6 4745 5420 2f20 4854 ......".GET./.HT
0x0040 5450 2f31 2e31
0a48 6f73 743a 20
0a 436f TP/1.1.Host:..Co
0x0050 6e6e 6563 7469 6f6e 3a20 436c 6f73 65
0d nnection:.Close.
0x0060
0a0d 0a ...
Annoyingly enough, two CRLF's are automatically appended to the send string regardless of whether it's legal for the specific HTTP request or not.
Aaron