Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Is System.Net.WebRequest / HttpWebRequest supported in the browser?

Discussion in 'Scripting' started by jobemakar_unity, Feb 18, 2018.

  1. jobemakar_unity

    jobemakar_unity

    Joined:
    Feb 13, 2018
    Posts:
    5
    Hi - I know that I can use UnityWebRequest, and will do that if I have to. For reasons I won't get into here I am trying to write an API that doesn't require Unity to run.

    I am successfully using WebRequest to hit a REST endpoint and receive a long-lived response, and read that response in real-time as the data is written to the response stream. Sort of like a comet connection.

    This works. My question is if I can trust that this class is supported in the browser. I was going to test it soon but wanted to ask here in case someone had a quick answer.

    Thanks
     
  2. jobemakar_unity

    jobemakar_unity

    Joined:
    Feb 13, 2018
    Posts:
    5