Calling REST API from Postman vs Visual Studio Webtest
<p>I am facing one odd problem, I was able to make this (<a href="https://my.factcorp.com/ABCorp/Reporting/api/Events/" rel="nofollow">https://my.factcorp.com/ABCorp/Reporting/api/Events/</a>) Rest API call from POSTMAN, but not from Visual Studio Web Test.</p>

<h1>PostMan call trace</h1>

<p>GET <a href="https://my.factcorp.com/ABCorp/Reporting/api/Events/" rel="nofollow">https://my.factcorp.com/ABCorp/Reporting/api/Events/</a> HTTP/1.1</p>

<p>Host: my.factcorp.com</p>

<p>Connection: keep-alive</p>

<p>Authorization: Basic </p>

<p>Cache-Control: no-cache</p>

<p>User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36</p>

<p>Postman-Token: 4dfaa309-c7d8-6785-d59c-9679ad4f3aaa</p>

<p>Accept: <em>/</em></p>

<p>Accept-Encoding: gzip, deflate, sdch, br</p>

<p>Accept-Language: en-US,en;q=0.8</p>

<p>Whereas, when I am making a call for same rest API from Webtest, getting below error</p>

<p><strong>Request failed</strong>: An existing connection was forcibly closed by the remote host</p>

<p>I can see Postman has added some extra header to the request, I also tried that by adding manually all those headers.</p>

<p>Any thought appreciated.</p>

<p>Thanks</p>