views:

82

answers:

1

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!

+1  A: 

Might want to try Indy.

kprobst
-1: Indy is built on top of System.Net
Lasse V. Karlsen
Indy solved it, thanks kprobst! =)Lasse, there apparently are two versions of Indy. One is built on top of .NET and one isn't. The latter one solved my problem nicely.
KennyDeriemaeker
There's a version that does not depend on System.Net.
kprobst
@KennyDeriemaeker youre' welcome :D
kprobst