From a7e625fc7e4d4e033f57a8ded8f47bb8a9298f82 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 13 Nov 2007 22:07:17 +0000 Subject: - [ZBX-160] fixed web.page.get to send \r\n instead of \n (Alexei) [svn merge -r5007:5016 svn://svn.zabbix.com/branches/1.4] git-svn-id: svn://svn.zabbix.com/trunk@5017 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- src/libs/zbxsysinfo/common/http.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libs/zbxsysinfo/common/http.c b/src/libs/zbxsysinfo/common/http.c index 4e49e304..c3fe9097 100644 --- a/src/libs/zbxsysinfo/common/http.c +++ b/src/libs/zbxsysinfo/common/http.c @@ -42,7 +42,9 @@ static int get_http_page(char *host, char *param, unsigned short port, char *buf if( SUCCEED == (ret = zbx_tcp_connect(&s, host, port)) ) { - zbx_snprintf(request, sizeof(request), "GET /%s HTTP/1.1\nHost: %s\nConnection: close\n\n", param, host); + zbx_snprintf(request, sizeof(request), "GET /%s HTTP/1.1\r\nHost: %s\r\nConnection: close\r\n\r\n", + param, + host); if( SUCCEED == (ret = zbx_tcp_send_raw(&s, request)) ) { -- cgit