rest を使用して iOS アプリケーション用の Web サービスを作成しました。Content-Length ヘッダー フィールドが必要です。「Advanced Rest Client」クロムの拡張機能でテストしたところ、正常に動作しましたが、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";
}