Isica
Новичок
Клиент просит так:
PS
Добавлением header('Content-Type: text/plain'); удается добиться
Content-Type: text/plain;charset=CP1251
Но как избавиться от Chunk-ов?
и ожидает такого ответа:GET /scrypt.php HTTP/1.1
Accept: text/plain
Accept-Encoding: text/plain
User-Agent: Windows XP
Host: host.net
А сервер отвечает так:HTTP/1.1 200 OK
Server: nginx/1.1.10
Date: Wed, 08 May 2013 12:52:46 GMT
Content-Type: text/plain
Content-Length: 4
Connection: keep-alive
Last-Modified: Wed, 08 May 2013 11:27:30 GMT
Accept-Ranges: bytes
DATA
Как сие можно исправить?HTTP/1.1 200 OK
Server: nginx/1.1.10
Date: Wed, 08 May 2013 12:41:07 GMT
Content-Type: text/html; charset=CP1251
Transfer-Encoding: chunked
Connection: keep-alive
4
DATA
0
PS
Добавлением header('Content-Type: text/plain'); удается добиться
Content-Type: text/plain;charset=CP1251
Но как избавиться от Chunk-ов?