V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
httpbin - 协议调试工具
httpstatuses - 协议状态码查询
httpie - cURL-like tool for humans
Fiddler
triffic
V2EX  ›  HTTP

关于 HttpClient Post 请求缓存的问题

  •  
  •   triffic · Dec 14, 2015 · 3208 views
    This topic created in 3787 days ago, the information mentioned may be changed or developed.

    项目后台使用 HttpClient 向对方服务器 http://xxx/handle.php 发起 Post 请求,对方 Apache 服务器看不到 post 的 log , HttpClient 却已经返回状态码 200 ,我想了下,不太专业的认为是否有以下几个原因:

    1 、对方用了负载均衡,有多台 Apache 服务器,即请求已经被某台服务器正常处理,而我没找到对应的服务器,所以没能看到日志,但是我仔细检查了下,服务器应该只有一台,日志也是打印到一个地方,所以这个应该排除;
    2 、有可能会使用到缓存吗;
    3 、其他原因?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3360 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 12:51 · PVG 20:51 · LAX 05:51 · JFK 08:51
    ♥ Do have faith in what you're doing.