Search code examples
c#.netangularjsinternet-explorer-10

Stream can not be read (StreamReader .net), send from Internet Explorer 10 with angular (1.5) $http.post and json as data


Call:

$http.post(serviceName, data, { tracker: tracker });

Content-Type is application/json;charset=utf-8 says ie10

Read:

StreamReader reader = new StreamReader(rawJSON);

Length of Stream is 0, which is not when send by other browsers (chrome..).

rawJSON content exception

Profiled request type, headers,..

Profiled data body


Solution

  • The problem was that the serviceName string did not end with a slash

    "path/service"
    

    Internet Explorer 10 and 11 could not interpret this slash adequately. After inserting a slash:

    "path/service/"
    

    ie10, ie11 understood the request like expected.