#1 2021-06-04 13:52:15

camu72
Member
From: Salta - Argentina
Registered: 2015-07-12
Posts: 28

How can I get HTTP data from an webpage?

I need to get the data returned by https://www.dolarsi.com/api/api.php?typ … rincipales in a rawUTF8 variable or variant. Thanks in advance!

Offline

#2 2021-06-04 20:13:16

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,549
Website

Re: How can I get HTTP data from an webpage?

Use SynCrtSock or mormot.net.client for the HTTP request.
And TDocVariant or other means of JSON serialization like a record for JSON. This is well covered in the documentation.

See e.g. https://stackoverflow.com/a/22078306

Offline

#3 2021-06-05 01:05:11

camu72
Member
From: Salta - Argentina
Registered: 2015-07-12
Posts: 28

Re: How can I get HTTP data from an webpage?

Thanks ab! it was just what I needed.

Offline

Board footer

Powered by FluxBB