How do I send an HTTP request in C# without using System.Net classes? [duplicate]
Pergunta
This question already has an answer here:
- Sending http requests in C# with Unity 2 answers
Is there a way in C#, perhaps using an external library of some kind, to perform HTTP web requests without using the built-in .NET classes (HttpRequest, WebRequest, WebClient...) ?
I ask because I'm working on a game in the Unity3D engine, which allows you to use most of .NET through Mono. However, the System.Net namespace isn't supported in its web player. I need to do an HTTP request (polling a php file) and wait (sleep) until I've gotten a response. Unity3D provides its own WWW class which can do web requests, but it forces you to use an asynchronous callback function - which I know how to use but is extremely inconvenient in the context of our code.
So I'm looking for any alternative to the System.Net classes which can do this for me. Any ideas would be greatly appreciated!
Solução
Might want to try Indy.