Page 1 of 1

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

Posted: Tue Apr 24, 2007 7:47 pm
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.

Posted: Tue Apr 24, 2007 8:15 pm
by Anteater
Try using libCurl.

Posted: Tue Apr 24, 2007 8:32 pm
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