Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4151

Raspberry Pi OS • Re: Use of curl vs. pycurl and correct syntax

$
0
0
Thank you all, it is going to take me a while to digest this.

While you are digesting things, perhaps this needs de-bunking -
3. Is curl even the best way to run a json command?
No easy answer to that, because it is based on a misunderstanding.

JSON is a markup language. It is a form of notation for presenting collections of data. https://www.json.org/json-en.html


You don't have 'json commands' in your example.

You have commands that some application has chosen to store in json notation for portability.

The way they are stored is not directly relevant to your primary issue of finding a way to execute those commands on your system.


curl is a tool for transferring data from or to a server using URLs.

pycurl is a Python library that lets you invoke the facilities of curl directly from a Python script. (It isn't clear whether you wish to work from the shell [command-line] or from a Python script.)

Statistics: Posted by B.Goode — Sat Apr 13, 2024 9:53 am



Viewing all articles
Browse latest Browse all 4151

Trending Articles