]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test410: fix for windows
authorJay Satiro <raysatiro@yahoo.com>
Mon, 25 Jan 2021 06:06:35 +0000 (01:06 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 26 Jan 2021 04:28:02 +0000 (23:28 -0500)
- Pass the very long request header via file instead of command line.

Prior to this change the 49k very long request header string was passed
via command line and on Windows that is too long so it was truncated and
the test would fail (specifically msys CI).

Closes https://github.com/curl/curl/pull/6516

tests/data/test410

index c6470c18449432508a98449e1a9da3358ab0fc1c..4d5d660514f3cfcb8b82f84464fae9c898dae5a7 100644 (file)
@@ -32,8 +32,11 @@ https
 HTTPS GET with very long request header
  </name>
 # 14 characters repeated 3500 times makes 49000 bytes
+<file name="log/file410">
+Long: %repeat[3500 x header content]%
+</file>
  <command>
--k https://%HOSTIP:%HTTPSPORT/410 -H "Long: %repeat[3500 x header content]%"
+-k https://%HOSTIP:%HTTPSPORT/410 -H @log/file410
 </command>
 </client>