Example: there is a web service, when loading a certain page in a web browser, we save all the HTML code to a file. Is it possible to implement this task using C ++ programming language?
- not clear what the problem? to save browser loaded HTML on a local machine? save generated html to server? to save someone else's HTML on the server? - AlexandrX
- onethe short answer is yes. using C ++ can do almost everything. - Mikhail Vaysman
- oneMore complete - using, of course, third-party libraries or operating system APIs. Because in pure C ++ there is no idea about web services, HTML, and others like it ... - Harry
|
1 answer
Yes, but you have to use the network capabilities of the operating system — sockets to connect over the network. You can implement the HTTP protocol both independently and using the ready-made library (not the standard C ++ library, there is no such thing in it).
Under Windows you can read about Windows Sockets here .
|