5

我正在尝试使用 URL ping 测试为我的一个 Web 应用程序设置可用性测试。问题是它不断失败并出现以下错误。该站点是公开可用的,当我只使用 IP 时,它会被解析并定向到正确的 url,但出现相同的错误(在测试中)。

尝试将 url 更改为 google/microsoft,可用性测试通过(当然)。

这是网络层问题还是其他问题?

System.Net.WebException: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at Microsoft.VisualStudio.TestTools.WebStress.WebTestTransaction.ResponseReceived(IAsyncResult result)


------------------------

System.Exception: Failure

**** NOTE: This is not a real web request ****

1 primary requests, 0 dependant requests and 0 conditional rules failed
4

2 回答 2

1

我不建议禁用整个安全功能。您可以在 Incapsula Bot 访问控制工具中为特定 IP 地址添加例外:

https://support.incapsula.com/hc/en-us/articles/200627690-Bot-Access-Control-Tool

以下是 Application Insights 可用性测试的源 IP 范围列表:

https://docs.microsoft.com/en-us/azure/azure-monitor/app/ip-addresses#availability-tests

于 2019-09-02T15:12:28.133 回答
1

忘了提到我们有 Incapsula。而且我很确定 Incapsula 会导致问题。

Incapsula 发送的 cookie 被破坏以防止机器人攻击,而且 Application Insights 可用性测试似乎不够“智能”来处理响应。

于 2019-06-03T00:02:13.810 回答