<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/curl.git/tests/data/test970, 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>tool_writeout: fix the HTTP_CODE json output</title>
<updated>2021-04-17T09:03:30+00:00</updated>
<author>
<name>Jay Satiro</name>
<email>raysatiro@yahoo.com</email>
</author>
<published>2021-04-16T22:34:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=2f78be51ebe8578bce5469924cedf7ac8bc06a85'/>
<id>2f78be51ebe8578bce5469924cedf7ac8bc06a85</id>
<content type='text'>
Update test 970 accordingly.

Reported-by: Michal Rus
Fixes #6905
Closes #6906
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update test 970 accordingly.

Reported-by: Michal Rus
Fixes #6905
Closes #6906
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: use %TESTNUMBER instead of fixed number</title>
<updated>2021-03-19T14:57:21+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-03-12T16:38:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=e2b4df7b5ed8ed86c900820fc4b2c30b9cb53f51'/>
<id>e2b4df7b5ed8ed86c900820fc4b2c30b9cb53f51</id>
<content type='text'>
This makes the tests easier to copy and relocate to other test numbers
without having to update content.

Closes #6738
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes the tests easier to copy and relocate to other test numbers
without having to update content.

Closes #6738
</pre>
</div>
</content>
</entry>
<entry>
<title>http: add support to read and store the referrer header</title>
<updated>2021-02-19T13:57:19+00:00</updated>
<author>
<name>Viktor Szakats</name>
<email>commit@vsz.me</email>
</author>
<published>2021-02-19T13:57:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=44872aefc2d54f297caf2b0cc887df321bc9d791'/>
<id>44872aefc2d54f297caf2b0cc887df321bc9d791</id>
<content type='text'>
- add CURLINFO_REFERER libcurl option
- add --write-out '%{referer}' command-line option
- extend --xattr command-line option to fill user.xdg.referrer.url extended
  attribute with the referrer (if there was any)

Closes #6591
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- add CURLINFO_REFERER libcurl option
- add --write-out '%{referer}' command-line option
- extend --xattr command-line option to fill user.xdg.referrer.url extended
  attribute with the referrer (if there was any)

Closes #6591
</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>tests: fixup several tests</title>
<updated>2021-02-08T23:28:19+00:00</updated>
<author>
<name>Fabian Keil</name>
<email>fk@fabiankeil.de</email>
</author>
<published>2020-02-28T14:00:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=124198631b042830ba8019bd7842de92c0853fc5'/>
<id>124198631b042830ba8019bd7842de92c0853fc5</id>
<content type='text'>
missing CRs and modified %hostip

lib556/test556: use a real HTTP version to make test reuse more convenient

make sure the weekday in Date headers matches the date

test61: replace stray "^M" (5e 4d) at the end of a cookie with a '^M' (0d)

Gets the test working with external proxies like Privoxy again.

Closes #6463
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
missing CRs and modified %hostip

lib556/test556: use a real HTTP version to make test reuse more convenient

make sure the weekday in Date headers matches the date

test61: replace stray "^M" (5e 4d) at the end of a cookie with a '^M' (0d)

Gets the test working with external proxies like Privoxy again.

Closes #6463
</pre>
</div>
</content>
</entry>
<entry>
<title>test970: adapted to the new internal order of variables</title>
<updated>2020-12-21T15:38:52+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2020-12-14T09:09:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=f7a65979f30ae83fedcaf0103501d220d905bc29'/>
<id>f7a65979f30ae83fedcaf0103501d220d905bc29</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>runtests: provide curl's version string as %VERSION for tests</title>
<updated>2020-10-02T20:54:23+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2020-10-02T11:45:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=e6b21d422e631a7c0cc81abf956af179b3b4c5e8'/>
<id>e6b21d422e631a7c0cc81abf956af179b3b4c5e8</id>
<content type='text'>
... so that we can check HTTP requests for User-Agent: curl/%VERSION

Update 600+ test cases accordingly.

Closes #6037
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... so that we can check HTTP requests for User-Agent: curl/%VERSION

Update 600+ test cases accordingly.

Closes #6037
</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>curl: add %{method} to the -w variables</title>
<updated>2020-07-14T15:53:45+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2020-07-13T07:58:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=f5e6907d5232ca9c05cb8a0b99d809590ddcde18'/>
<id>f5e6907d5232ca9c05cb8a0b99d809590ddcde18</id>
<content type='text'>
Gets the CURLINFO_EFFECTIVE_METHOD from libcurl.

Added test 1197 to verify.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Gets the CURLINFO_EFFECTIVE_METHOD from libcurl.

Added test 1197 to verify.
</pre>
</div>
</content>
</entry>
<entry>
<title>test970: make it require proxy support</title>
<updated>2020-06-02T08:39:15+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2020-06-02T07:21:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=c06ffdb6f1d92dc7c43952aba409353a5beef56b'/>
<id>c06ffdb6f1d92dc7c43952aba409353a5beef56b</id>
<content type='text'>
This test verifies the -w %json output and the test case includes a full
generated "blob". If there's no proxy support built into libcurl, it
will return an error for proxy related info variables and they will not
be included in the json, thus causing a mismatch and this test fails.

Reported-by: Marc Hörsken
Fixes #5501
Closes #5502
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This test verifies the -w %json output and the test case includes a full
generated "blob". If there's no proxy support built into libcurl, it
will return an error for proxy related info variables and they will not
be included in the json, thus causing a mismatch and this test fails.

Reported-by: Marc Hörsken
Fixes #5501
Closes #5502
</pre>
</div>
</content>
</entry>
</feed>
