CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2007
    Posts
    3

    getting data from site

    i want to read the data from site.is it possible in c++
    if possible please tell me solution how it is possible.
    show me some examples.
    in java we have URL class is it in c++
    thank u ,inadvance
    astle

  2. #2
    Join Date
    Feb 2005
    Location
    Pune (India)
    Posts
    644

    Thumbs up Re: getting data from site

    hi,

    It's is possible in c++ , but not directly you need to do socket/network programming for that !

    by the way which platform you are using I mean Windows or *Nix

    in vc++ you can use CHttpConnection and related classes for fetching information from httpserver.

    look in to the link for more information on how to use.

    http://www.codeproject.com/internet/getwebfile.asp


    -Anant
    "Devise the simplest possible solution that solves the problems"

  3. #3
    Join Date
    Feb 2007
    Posts
    3

    Re: getting data from site

    thank u for ue reply
    iam using windows.
    but need only in c++
    but thank u for giving me some idea .
    any example in c++
    thank u
    astle

  4. #4
    Join Date
    Nov 2006
    Location
    Essen, Germany
    Posts
    1,344

    Re: getting data from site

    Hello,

    if you don´t want to use the MFC you can use the WinINet functions as documented on MSDN.

    Using plain c/c++ and the standard libraries will be really pain in the *** because you have to use sockets and implement the FTP/HTTP protocol on your own.

    Regards,
    Guido
    - Guido

  5. #5
    Join Date
    Jan 2006
    Posts
    74

    Re: getting data from site

    I personally use cURL, it handles all the things like proxy redirects and everythign for you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured