N
N
noytmant2020-12-23 20:08:03
C++ / C#
noytmant, 2020-12-23 20:08:03

Get string from url c++?

How to get a string from a link without using curl connection and other things? Just the value of the text file, for further comparison. Just DownloadString. If anyone has any suggestions, I'd be happy to help. I've looked all over the internet and can't find anything.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
galaxy, 2020-12-23
@galaxy

There is no such thing in the standard library.
Choose . You do not want? - write your own implementation of the HTTP protocol on sockets (actually not very difficult for simple client requests). True, HTTPS is now all around, so good luck in this endeavor.

S
Sergey Lyutikov, 2020-12-24
@SergeyLyutikov

std::unique_ptr<TIdHTTP> _http(new TIdHTTP());
UnicodeString _str = _http->Get(_uri);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question