I'm trying to setup an availability test for one of my web app using URL ping test. The problem is it keeps failing with error below. The site is publicly available and when I just use the IP it get resolved and directed to the correct url but with same error (in the test).
Tried changing the url to google/microsoft, availability test pass (of course).
Is this a network layer issue or something else?
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
Forgot to mention that we have Incapsula on. And I am pretty sure Incapsula is causing the problem.
The cookies that Incapsula sends are broken to prevent bots attacks and it seems that Application Insights Availability test is not "smart" enough to process the response.