リクエストをローカルで行うと (POST [http://localhost:8790/blah/])、次のレスポンス ヘッダーが返されます。
Cache-Control private
Content-Length 32
Content-Type application/json
Date Tue, 19 Mar 2013 13:59:34 GMT
Server Microsoft-IIS/7.5
X-AspNet-Version 4.0.30319
X-AspNetMvc-Version 4.0
X-Powered-By ASP.NET
リモートでリクエストを行うと (POST [http://123.456.1789:8790/blah/])、次のレスポンス ヘッダーが返されます。
Cache-Control private
Content-Length 11
Content-Type text/html
Date Tue, 19 Mar 2013 14:08:40 GMT
Server Microsoft-IIS/7.5
X-AspNet-Version 4.0.30319
X-AspNetMvc-Version 4.0
X-Powered-By ASP.NET
POST パラメータは非常に表面的です: name=value1&name2=value2
ご覧のとおり、コンテンツ タイプが異なり、その結果、返されるデータが異なります。
何が起こっているのか誰にも分かりませんか?
EDIT ローカル リクエスト
Accept application/json
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Cache-Control no-cache
Connection keep-alive
Content-Length 36
Content-Type application/x-www-form-urlencoded; charset=UTF-8
Cookie blah=blah;
Host localhost:8790
Pragma no-cache
Referer [http://localhost:8790/blah/]
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
X-Requested-With XMLHttpRequest
リモートリクエスト
Accept application/json
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Cache-Control no-cache
Connection keep-alive
Content-Length 36
Content-Type application/x-www-form-urlencoded; charset=UTF-8
Cookie blah=blah;
Host 123.456.1789:8790
Pragma no-cache
Referer [http://123.456.1789:8790/blah/]
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
X-Requested-With XMLHttpRequest