tags:

views:

37

answers:

2

hi, i want to connect to a http server(something like google.com) and get data from it with chuncked property and then merge chuncked data together.

A: 

The right answer to "I want to do something with an HTTP server", especially in C/C++, is usually curl/libcurl: http://curl.haxx.se/libcurl/

There's also an actual C++ binding that may be more suitable to your needs, http://curlpp.org/

Nicholas Knight
Agreed, although I've always found that library a pain to build.
Konrad
thanx, but i don't want to use any librarybecause i want use my code in both windows and linux platform
Aliasghar Yaghoobzadeh
@Aliasghar: Huh?! libcurl is fully cross-platform, working fine in Linux, Windows, and a dozen other operating systems. It'll even run on IBM mainframes and little embedded QNX boxes. If you want to write non-trivial applications that work on multiple operating systems, you _have_ to use cross-platform libraries, or you'll make the project an order of magnitude more difficult.
Nicholas Knight
A: 

Since your question is tagged visual-c++, I'm going to assume that your platform is Windows, in which case, you can use WinHTTP.

Jim