1

我已经使用 rest 为 ios 应用程序创建了 Web 服务。我想要 Content-Length 标头字段。当我在“Advanced Rest Client”chrome 的扩展上进行测试时,它工作正常,但 ios 应用程序没有获得 Content-Length。而不是 Content-Length 获得 Transfer-Encoding - “身份”

检查来自 Advanced Rest Client 扩展的以下响应

Date: Wed, 24 Jun 2015 05:25:48 GMT 
Server: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15 
X-Powered-By: PHP/5.5.15
Content-Length: 1272347 
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: application/json 

来自客户端 ios 应用程序的响应

{
    Connection = "Keep-Alive";
    "Content-Type" = "application/json";
    Date = "Tue, 23 Jun 2015 08:12:34 GMT";
    "Keep-Alive" = "timeout=5, max=97";
    Server = "Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15";
    "Transfer-Encoding" = Identity;
    "X-Powered-By" = "PHP/5.5.15";
}
4

0 回答 0