1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-03 10:51:49 -05:00
Jay Satiro 65ca229461 tool_writeout: refactor write-out and write-out json
- Deduplicate the logic used by write-out and write-out json.

Rather than have separate writeLong, writeString, etc, logic for
each of write-out and write-out json instead have respective shared
functions that can output either format and a 'use_json' parameter to
indicate whether it is json that is output.

This will make it easier to maintain. Rather than have to go through
two sets of logic now we only have to go through one.

- Support write-out %{errormsg} and %{exitcode} in json.

- Clarify in the doc that %{exitcode} is the exit code of the transfer.

Prior to this change it just said "The numerical exitcode" which
implies it's the exit code of the tool, and it's not necessarily that.

Closes https://github.com/curl/curl/pull/6544
2021-02-09 02:48:27 -05:00
..
2020-10-25 23:08:54 +01:00
2020-11-04 23:59:47 +01:00
2020-11-04 23:59:47 +01:00
2020-11-04 23:59:47 +01:00
2020-12-12 09:59:28 -08:00
2020-11-04 23:59:47 +01:00
2020-11-04 23:59:47 +01:00
2020-10-25 23:08:54 +01:00
2020-01-16 11:55:56 +01:00
2020-11-04 23:59:47 +01:00
FAQ
2020-12-26 23:54:25 +01:00
2020-10-15 15:47:38 +02:00
2020-12-12 09:59:28 -08:00
2020-12-12 09:59:28 -08:00
2021-02-01 13:13:12 +00:00
2020-11-04 23:59:47 +01:00
2021-01-11 15:12:25 +01:00
2021-01-20 22:45:12 +01:00
2021-01-02 23:35:59 +01:00
2020-11-04 23:59:47 +01:00
2020-12-18 09:58:03 +01:00
2020-11-04 23:59:47 +01:00
2020-09-21 11:02:32 +02:00
2019-11-28 12:58:47 +01:00
2020-11-04 23:59:47 +01:00
2021-01-14 09:49:17 +01:00
2021-02-05 23:56:47 +01:00
2020-11-04 23:59:47 +01:00
2021-02-05 13:43:26 +01:00
2021-02-05 08:46:11 +01:00
2020-12-15 12:58:19 +01:00

curl logo

Documentation

You'll find a mix of various documentation in this directory and subdirectories, using several different formats. Some of them are not ideal for reading directly in your browser.

If you'd rather see the rendered version of the documentation, check out the curl website's documentation section for general curl stuff or the libcurl section for libcurl related documentation.