title: Issue while making HTTPs request from Hololens to Azure OCR service
body: <p>We are migrating an application from UWP to Unity, in which we are trying to access azure OCR services from Unity . While making a https request from unity we are getting the below error
  (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)</p>
  <pre><code>Exception thrown at 0x7787A0CB in EyeTrackingCus01.exe: Microsoft C++ exception: 
  Il2CppExceptionWrapper at memory location 0x156DEEC0.
  Exception thrown at 0x7787A0CB in EyeTrackingCus01.exe: Microsoft C++ exception: 
  Il2CppExceptionWrapper at memory location 0x156DF048.
  Exception thrown at 0x7787A0CB in EyeTrackingCus01.exe: Microsoft C++ exception: 
  Il2CppExceptionWrapper at memory location 0x031AE3C8.
  The thread 0x1410 has exited with code 0 (0x0).
  </code></pre>
  <p>The code snippet used is as follows:</p>
  <pre><code>static async Task MakeOCRRequest(string imageFilePath)
  {
      Debug.Log(&quot;MakeOCRRequest Function Called&quot;);
                          
      string subscriptionKey = &quot;xxxxxxxxxxxxx&quot;;
      string endpoint = “https://hololensxxxx.cognitiveservices.azure.com/”;
      // the OCR method endpoint
      string uriBase = endpoint + &quot;vision/v2.1/ocr&quot;;
      string requestParameters = &quot;language=unk&amp;detectOrientation=true&quot;;
      string uri = uriBase + &quot;?&quot; + requestParameters;
      byte[] data = GetImageAsByteArray(imageFilePath);
      Debug.Log(&quot;Image File Path: &quot;+imageFilePath);
      Debug.Log(&quot;Image File Size: &quot;+data.Length.ToString());
      Debug.Log(&quot;Response: Image Converted into byte Array&quot;);
                                        
      try
      {                                               
          HttpWebRequest req = (HttpWebRequest)WebRequest.Create(uri);
                                                        
          Debug.Log(&quot;Request object:&quot; + req);
                                                        
          req.Method = &quot;POST&quot;;                          
          req.ContentType = &quot;application/octet-stream&quot;;                                   
          req.ContentLength = data.Length;                                      
          req.Expect = &quot;application/json&quot;;
          req.Headers.Add(&quot;Ocp-Apim-Subscription-Key&quot;, subscriptionKey);
  
          req.GetRequestStream().Write(data, 0, data.Length);
                                                        
          Debug.Log(&quot;Before the Response&quot;);
                                                        
          HttpWebResponse response = (HttpWebResponse)req.GetResponseAsync().Result;
  
          string json = new StreamReader(response.GetResponseStream()).ReadToEnd();
                                                        
          Debug.Log(&quot;Response:&quot;+json);
      }
      catch (Exception e)
      {
          Debug.log(&quot;Error&quot; + e.Message);
      }                               
  }
  </code></pre>