How do I retrieve some data from a web page from a .NET C++ program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kst101
    New Member
    • Oct 2016
    • 2

    How do I retrieve some data from a web page from a .NET C++ program

    I like to retrieve some data from a web page (for example some stock quotes from a stock quote page) from a .NET C++ program.
    How do I do it? It seems that I have to submit a javascript from the .NET C++ program to retrieve the data, How is this done?
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    huh - that sounds more like an adventure then planned development.

    basically u would only call the website with curl or whatever mechanism u prefer at ur server and then parse its response (most likely) with the help of a DOM- or XML-parser. if the data is not available on a simple pageload - then it might be that you would need to check what exact requests on the page deliver the data - and simply curl (read: retrieve) that ones. if authentication plays a role in all this - it will be probably much more complex then what i did suggest up to here.
    Last edited by gits; Oct 11 '16, 01:16 PM.

    Comment

    • kst101
      New Member
      • Oct 2016
      • 2

      #3
      Thank you gits! How do I call a DOM-parser of XML-parser? Where can I find a DOM-parser or XML-parser?

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5388

        #4
        i am pretty sure that u find something that u can use directly from the '.NET universe' - probably called XmlReader or similar, personally i dont use any microsoft things - so i cannot say exactly.

        Comment

        Working...