Programmatically reading a web page

前端 未结 6 1608
别跟我提以往
别跟我提以往 2020-11-28 03:38

I want to write a program in C/C++ that will dynamically read a web page and extract information from it. As an example imagine if you wanted to write an application to foll

6条回答
  •  青春惊慌失措
    2020-11-28 04:34

    There is a free TCP/IP library available for Windows that supports HTTP and HTTPS - using it is very straightforward.

    Ultimate TCP/IP

    CUT_HTTPClient http;
    http.GET("http://folder/file.htm", "c:/tmp/process_me.htm");    
    

    You can also GET files and store them in a memory buffer (via CUT_DataSource derived classes). All the usual HTTP support is there - PUT, HEAD, etc. Support for proxy servers is a breeze, as are secure sockets.

提交回复
热议问题