<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/curl.git/src/tool_writeout.c, branch bagder/https-proxy-tests</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>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: 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>
<entry>
<title>curl: have -w's 'http_version' show '3' for HTTP/3</title>
<updated>2019-08-07T10:51:52+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2019-08-07T07:52:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=eb63b27b6b76ccdb712d0bd4d00d779f658a6390'/>
<id>eb63b27b6b76ccdb712d0bd4d00d779f658a6390</id>
<content type='text'>
Closes #4196
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #4196
</pre>
</div>
</content>
</entry>
<entry>
<title>curl: correct the switch() logic in ourWriteOut</title>
<updated>2018-11-07T10:15:20+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2018-11-07T10:14:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=bda4ef417a00c91e3a7829fdba4b0968dd62e497'/>
<id>bda4ef417a00c91e3a7829fdba4b0968dd62e497</id>
<content type='text'>
Follow-up to e431daf013, as I did the wrong correction for a compiler
warning. It should be a break and not a fall-through.

Pointed-out-by: Frank Gevaerts
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Follow-up to e431daf013, as I did the wrong correction for a compiler
warning. It should be a break and not a fall-through.

Pointed-out-by: Frank Gevaerts
</pre>
</div>
</content>
</entry>
<entry>
<title>curl: add %{stderr} and %{stdout} for --write-out</title>
<updated>2018-11-07T10:09:55+00:00</updated>
<author>
<name>Frank Gevaerts</name>
<email>frank@gevaerts.be</email>
</author>
<published>2018-10-08T21:54:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=e431daf013ea04cb1a988a2009d820224ef5fb79'/>
<id>e431daf013ea04cb1a988a2009d820224ef5fb79</id>
<content type='text'>
Closes #3115
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #3115
</pre>
</div>
</content>
</entry>
<entry>
<title>cppcheck: fix warnings</title>
<updated>2018-06-11T09:14:48+00:00</updated>
<author>
<name>Marian Klymov</name>
<email>nekto1989@gmail.com</email>
</author>
<published>2018-06-02T20:52:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=c45360d4633850839bb9c2d77dbf8a8285e9ad49'/>
<id>c45360d4633850839bb9c2d77dbf8a8285e9ad49</id>
<content type='text'>
- Get rid of variable that was generating false positive warning
(unitialized)

- Fix issues in tests

- Reduce scope of several variables all over

etc

Closes #2631
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Get rid of variable that was generating false positive warning
(unitialized)

- Fix issues in tests

- Reduce scope of several variables all over

etc

Closes #2631
</pre>
</div>
</content>
</entry>
<entry>
<title>curl: check for end of input in writeout backslash handling</title>
<updated>2017-03-25T22:48:57+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2017-03-24T09:14:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=8e65877870c1fac920b65219adec720df810aab9'/>
<id>8e65877870c1fac920b65219adec720df810aab9</id>
<content type='text'>
Reported-by: Brian Carpenter

Added test 1442 to verify
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reported-by: Brian Carpenter

Added test 1442 to verify
</pre>
</div>
</content>
</entry>
<entry>
<title>tool_writeout: fixed a buffer read overrun on --write-out</title>
<updated>2017-03-12T07:28:31+00:00</updated>
<author>
<name>Dan Fandrich</name>
<email>dan@coneharvesters.com</email>
</author>
<published>2017-03-11T09:59:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=1890d59905414ab84a35892b2e45833654aa5c13'/>
<id>1890d59905414ab84a35892b2e45833654aa5c13</id>
<content type='text'>
If a % ended the statement, the string's trailing NUL would be skipped
and memory past the end of the buffer would be accessed and potentially
displayed as part of the --write-out output. Added tests 1440 and 1441
to check for this kind of condition.

Reported-by: Brian Carpenter
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a % ended the statement, the string's trailing NUL would be skipped
and memory past the end of the buffer would be accessed and potentially
displayed as part of the --write-out output. Added tests 1440 and 1441
to check for this kind of condition.

Reported-by: Brian Carpenter
</pre>
</div>
</content>
</entry>
<entry>
<title>checksrc: warn for assignments within if() expressions</title>
<updated>2016-12-14T00:29:44+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2016-12-14T00:29:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=1c3e8bbfedcd3822aeb1bab22fb56c5ecff4295b'/>
<id>1c3e8bbfedcd3822aeb1bab22fb56c5ecff4295b</id>
<content type='text'>
... they're already frowned upon in our source code style guide, this
now enforces the rule harder.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... they're already frowned upon in our source code style guide, this
now enforces the rule harder.
</pre>
</div>
</content>
</entry>
<entry>
<title>checksrc: stricter no-space-before-paren enforcement</title>
<updated>2016-12-13T22:39:11+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2016-12-13T22:34:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=b228d2952b6762b5c9b851fba0cf391e80c6761a'/>
<id>b228d2952b6762b5c9b851fba0cf391e80c6761a</id>
<content type='text'>
In order to make the code style more uniform everywhere
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In order to make the code style more uniform everywhere
</pre>
</div>
</content>
</entry>
</feed>
