<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/curl.git/src/tool_writeout_json.c, branch bagder/test493-https</title>
<subtitle>github.com: bagder/curl.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/'/>
<entry>
<title>copyright: update copyright year ranges to 2021</title>
<updated>2021-03-27T22:00:14+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-03-27T11:52:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=85e6975643fe52d6c4152969e2353f3ab8ea4554'/>
<id>85e6975643fe52d6c4152969e2353f3ab8ea4554</id>
<content type='text'>
Reviewed-by: Emil Engler
Closes #6802
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-by: Emil Engler
Closes #6802
</pre>
</div>
</content>
</entry>
<entry>
<title>tool_writeout: refactor write-out and write-out json</title>
<updated>2021-02-09T07:48:27+00:00</updated>
<author>
<name>Jay Satiro</name>
<email>raysatiro@yahoo.com</email>
</author>
<published>2021-01-28T23:56:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=65ca2294619f865362332ceddc622db92d0f50a6'/>
<id>65ca2294619f865362332ceddc622db92d0f50a6</id>
<content type='text'>
- 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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- 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
</pre>
</div>
</content>
</entry>
<entry>
<title>misc: fix "warning: empty expression statement has no effect"</title>
<updated>2020-12-26T22:44:17+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2020-12-26T14:43:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=8ab78f720ae478d533e30b202baec4b451741579'/>
<id>8ab78f720ae478d533e30b202baec4b451741579</id>
<content type='text'>
Turned several macros into do-while(0) style to allow their use to work
find with semicolon.

Bug: https://github.com/curl/curl/commit/08e8455dddc5e48e58a12ade3815c01ae3da3b64#commitcomment-45433279
Follow-up to 08e8455dddc5e4
Reported-by: Gisle Vanem
Closes #6376
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Turned several macros into do-while(0) style to allow their use to work
find with semicolon.

Bug: https://github.com/curl/curl/commit/08e8455dddc5e48e58a12ade3815c01ae3da3b64#commitcomment-45433279
Follow-up to 08e8455dddc5e4
Reported-by: Gisle Vanem
Closes #6376
</pre>
</div>
</content>
</entry>
<entry>
<title>curl.se: new home</title>
<updated>2020-11-04T22:59:47+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2020-11-04T13:02:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=4d2f8006777d6354d9b62eae38ebd0a0256d0f94'/>
<id>4d2f8006777d6354d9b62eae38ebd0a0256d0f94</id>
<content type='text'>
Closes #6172
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #6172
</pre>
</div>
</content>
</entry>
<entry>
<title>tool_writeout: add new writeout variable, %{num_headers}</title>
<updated>2020-09-14T22:37:08+00:00</updated>
<author>
<name>anio</name>
<email>anio@users.noreply.github.com</email>
</author>
<published>2020-09-09T15:05:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=0c1e767e83ec669d213868db8887e19386f717b2'/>
<id>0c1e767e83ec669d213868db8887e19386f717b2</id>
<content type='text'>
This variable gives the number of headers.

Closes #5947
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This variable gives the number of headers.

Closes #5947
</pre>
</div>
</content>
</entry>
<entry>
<title>writeout_json: Fix data type issues</title>
<updated>2020-03-27T22:32:25+00:00</updated>
<author>
<name>Michael Kaufmann</name>
<email>mail@michael-kaufmann.ch</email>
</author>
<published>2020-03-26T22:15:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=884de1a763af186984cbcbe7b35b551c06025284'/>
<id>884de1a763af186984cbcbe7b35b551c06025284</id>
<content type='text'>
Load long values correctly (e.g. for http_code).

Use curl_off_t (not long) for:
- size_download (CURLINFO_SIZE_DOWNLOAD_T)
- size_upload (CURLINFO_SIZE_UPLOAD_T)

The unit for these values is bytes/second, not microseconds:
- speed_download (CURLINFO_SPEED_DOWNLOAD_T)
- speed_upload (CURLINFO_SPEED_UPLOAD_T)

Fixes #5131
Closes #5152
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Load long values correctly (e.g. for http_code).

Use curl_off_t (not long) for:
- size_download (CURLINFO_SIZE_DOWNLOAD_T)
- size_upload (CURLINFO_SIZE_UPLOAD_T)

The unit for these values is bytes/second, not microseconds:
- speed_download (CURLINFO_SPEED_DOWNLOAD_T)
- speed_upload (CURLINFO_SPEED_UPLOAD_T)

Fixes #5131
Closes #5152
</pre>
</div>
</content>
</entry>
<entry>
<title>writeout_json: use curl_off_t printf() option for the time output</title>
<updated>2020-03-18T22:31:37+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2020-03-17T22:29:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=8d9802b0aed12932612847f4267a42d08b7bfa71'/>
<id>8d9802b0aed12932612847f4267a42d08b7bfa71</id>
<content type='text'>
Follow-up to: 04c03416e68fd635a15

Closes #5115
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Follow-up to: 04c03416e68fd635a15

Closes #5115
</pre>
</div>
</content>
</entry>
<entry>
<title>writeout_json: add missing comma to fix the HTTP version</title>
<updated>2020-03-17T15:05:05+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2020-03-17T15:04:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=ab9dc5ae2a86e42bb087986587e68cefdf76531d'/>
<id>ab9dc5ae2a86e42bb087986587e68cefdf76531d</id>
<content type='text'>
Follow-up to 04c03416e68fd635a15
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Follow-up to 04c03416e68fd635a15
</pre>
</div>
</content>
</entry>
<entry>
<title>writeout: support to generate JSON output</title>
<updated>2020-03-17T14:01:28+00:00</updated>
<author>
<name>Mathias Gumz</name>
<email>mg@2hoch5.com</email>
</author>
<published>2020-02-01T17:55:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=04c03416e68fd635a15cae8201872f5c29fdcca8'/>
<id>04c03416e68fd635a15cae8201872f5c29fdcca8</id>
<content type='text'>
This commit adds support to generate JSON via the writeout feature:

    -w "%{json}"

It leverages the existing infrastructure as much as possible. Thus,
generating the JSON on STDERR is possible by:

    -w "%{stderr}%{json}"

This implements a variant of
https://github.com/curl/curl/wiki/JSON#--write-out-json.

Closes #4870
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit adds support to generate JSON via the writeout feature:

    -w "%{json}"

It leverages the existing infrastructure as much as possible. Thus,
generating the JSON on STDERR is possible by:

    -w "%{stderr}%{json}"

This implements a variant of
https://github.com/curl/curl/wiki/JSON#--write-out-json.

Closes #4870
</pre>
</div>
</content>
</entry>
</feed>
