模拟 HTTP 408?
服务器可以模拟http 408错误吗?支付处理商正在尝试向我的网站发送 http 帖子,他们在日志中表示正在建立连接,但我的服务器在 0.1 秒后响应 http 408。他们是否有可能立即发回 408,从而没有实际的超时?
Is it possible for a server to simulate a http 408 error? A payment processor is trying to send a http post to my website and they say that in their logs a connection is being made but my server is responding with a http 408 after 0.1 seconds. Is it possible for them to send a 408 back instantly hence no actual timeout?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当然,如果服务器选择这样做,它可以立即返回 HTTP 408 错误。这将是对错误代码的滥用,但这是可能的。您可能需要使用数据包嗅探器来查看 408 是否从您的服务器或某些上游代理发送。
Certainly a server can return a HTTP 408 error immediately, if it chooses to do so. This would be an abuse of the error code, but it is possible. You may want to use a packet sniffer to see if a 408 is being sent from your server, or from some upstream proxy.