How to make HTTP-request and download file from web-server?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Lev_a
Posts: 52
Joined: Tue Jan 10, 2006 5:59 pm
Location: Toronto, Canada

How to make HTTP-request and download file from web-server?

Post by Lev_a »

I'm using irrlicht for my online game, but I need periodical reading from web-server, like get some small text files. I used library "atlhttp", but since irrlicht 1.3 - I can't use it because conflict of string libraries between irrlicht and MS. Any one have ideas? I just need get body of file without headers and so on. In irrlicht I could not find any function like I need.
Thanks for your ideas.
Anteater
Posts: 266
Joined: Thu Jun 01, 2006 4:02 pm
Location: Earth
Contact:

Post by Anteater »

Try using libCurl.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

The only conflict that should arise between the std::string and core::string is caused by poor use of namespaces.

If you have a using namespace core or using namespace irr::core and a using namespace std you will get conflicts. You can fix that by removing either one of those using clauses, or by telling the compiler specifically which string type you want when you use the string.

Travis
Post Reply