Problem with Ajax Request to https url


  • As the title suggests, I'm having a problem with trying to make a XMLHttpRequest (either directly or via the WinJS.xhr function) in a Windows 8 Windows Store app running in Visual Studio Express 2012. The request is a POST to a https url, with "Content-type" set to "text/plain".

    I get the following error in the VS error console when the request is made:

    XMLHttpRequest: Network Error 0x2ef3, Could not complete the operation due to error 00002ef3.

    If I switch the type or method to GET instead of POST, I just get the expected error data back from the server which complains about using the wrong request type.

    I would greatly appreciate anyone shedding some light on this issue. Thanks.

    PS. Pretty much every Capability is enabled in package.appxmanifest. The only one that is not is Document Library. Just in case that was the problem ;)

    Friday, September 14, 2012 1:46 AM

All replies