Pergunta

This question already has an answer here:

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!

Foi útil?

Solução

Might want to try Indy.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top