]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: shorten space and tab macro names
authorViktor Szakats <commit@vsz.me>
Tue, 4 Nov 2025 03:05:19 +0000 (04:05 +0100)
committerViktor Szakats <commit@vsz.me>
Wed, 5 Nov 2025 14:59:43 +0000 (15:59 +0100)
Easier to write and read.

Follow-up to d29f14b9cf0d38f3887b6eadc71af16903bc7f5b #19300

Closes #19349

41 files changed:
docs/tests/FILEFORMAT.md
tests/data/test1029
tests/data/test1070
tests/data/test1090
tests/data/test1105
tests/data/test1185
tests/data/test136
tests/data/test1461
tests/data/test1654
tests/data/test1664
tests/data/test17
tests/data/test1700
tests/data/test1701
tests/data/test1702
tests/data/test188
tests/data/test189
tests/data/test1940
tests/data/test1955
tests/data/test1958
tests/data/test212
tests/data/test2302
tests/data/test2306
tests/data/test2400
tests/data/test2401
tests/data/test2403
tests/data/test2406
tests/data/test2500
tests/data/test2501
tests/data/test2503
tests/data/test358
tests/data/test359
tests/data/test378
tests/data/test4
tests/data/test421
tests/data/test459
tests/data/test46
tests/data/test54
tests/data/test646
tests/data/test792
tests/data/test793
tests/testutil.pm

index 070735836e5f378de6b94e8da3b529f61b6f2246..9703df9aa832a34a9bb7d63134fe75c28cc5c604 100644 (file)
@@ -81,8 +81,8 @@ For example, to insert the word hello 100 times:
 To add significant whitespace characters at the end of the line, or to empty
 lines:
 
-    %spc%
-    %tab%
+    %SP  - space
+    %TAB - horizontal tab
 
 ## Insert capped epoch days
 
index ac636449cb40d622f97fba2f2b80ad169f35df7c..2004791cd847f45656e53ca1b1afa3a015826060 100644 (file)
@@ -50,7 +50,7 @@ Content-Length: 62
 Connection: close
 
 This server reply is for testing a simple Location: following
-http://%HOSTIP:%HTTPPORT/we/want/our/data/%TESTNUMBER0002.txt?coolsite=yes http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER 0%spc%
+http://%HOSTIP:%HTTPPORT/we/want/our/data/%TESTNUMBER0002.txt?coolsite=yes http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER 0%SP
 </stdout>
 </verify>
 </testcase>
index 39e2d408f8a86e99b30dbbf6d5090b7a102bbbc8..3305b7b2b2a89f0889b74b14be46ea44e772babd 100644 (file)
@@ -57,7 +57,7 @@ Expect: 100-continue
 Content-Length: 2313
 Content-Type: application/x-www-form-urlencoded
 
-This creates%spc%
+This creates%SP
 </protocol>
 </verify>
 </testcase>
index ad3c59d1136fc79eb5eb79fdb5212eb42ffa8c89..0e3879c68c8fdda4641e431666f1e6d4561c071d 100644 (file)
@@ -30,7 +30,7 @@ Connection: close
 Content-Type: text/plain; charset=us-ascii
 
 0007
-bigger%spc%
+bigger%SP
 0008
 monster
 
index aa84c862cb110451cc26a3c62da794b2cb33e45f..d23b92f560f564b043886de676b759a3f42ced72 100644 (file)
@@ -19,9 +19,9 @@ Funny-head: yesyes swsclose
 Set-Cookie: foobar=name;
 Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/";
 Set-Cookie: partmatch=present; domain=.0.0.1; path=/;
-Set-Cookie: foo%tab%bar=barfoo
-Set-Cookie: bar%tab%foo=
-Set-Cookie: bar=foo%tab%bar
+Set-Cookie: foo%TABbar=barfoo
+Set-Cookie: bar%TABfoo=
+Set-Cookie: bar=foo%TABbar
 
 </data>
 </reply>
index 64eef418005e11b95f69c4104d035943b1c0a658..26852a641835d8170edf9e2c8539b9019ffdcee0 100644 (file)
@@ -20,7 +20,7 @@ checksrc
  * Violate each rule at least once.
  **/
 int hello; /*------------------------------------------------------------------*/
-int%tab%tab;
+int%TABtab;
 int trailing_space;
 int a = func ();
 int b = func( b);
@@ -91,7 +91,7 @@ void startfunc(int a, int b) {
 ./%LOGDIR/code1185.c:4:82: warning: Longer than 79 columns (LONGLINE)
  int hello; /*------------------------------------------------------------------*/
 ./%LOGDIR/code1185.c:5:4: error: Contains TAB character (TABS)
- int%tab%tab;
+ int%TABtab;
     ^
 ./%LOGDIR/code1185.c:7:13: warning:  func with space (SPACEBEFOREPAREN)
  int a = func ();
@@ -118,7 +118,7 @@ void startfunc(int a, int b) {
  } else {
  ^
 ./%LOGDIR/code1185.c:24:11: warning: missing space after close paren (PARENBRACE)
- if(a == 2){%spc%%spc%
+ if(a == 2){%SP%SP
            ^
 ./%LOGDIR/code1185.c:28:14: warning: no space before semicolon (SPACESEMICOLON)
  func_return() ;
@@ -205,10 +205,10 @@ void startfunc(int a, int b) {
   // CPP comment ?
   ^
 ./%LOGDIR/code1185.c:1:1: error: Missing copyright statement (COPYRIGHT)
-%spc%
+%SP
  ^
 ./%LOGDIR/code1185.c:1:1: error: Missing closing comment (OPENCOMMENT)
-%spc%
+%SP
  ^
 checksrc: 0 errors and 41 warnings
 </stdout>
index 70537719cce89290f3a8e0febd5315039859943d..c869c612bf135cd00414d8f14c5f45870c3cbc91 100644 (file)
@@ -30,7 +30,7 @@ FTP with user and no password
 <verify>
 <protocol crlf="yes">
 USER user
-PASS%spc%
+PASS%SP
 PWD
 EPSV
 TYPE I
index 71de31772dd717b981067e02cd1bc75f5275abcb..4ee109a12299de8694c5d74006ef353fcc455b24 100644 (file)
@@ -47,8 +47,8 @@ Usage: curl [options...] <url>
 
 This is not the full help; this menu is split into categories.
 Use "--help category" to get an overview of all categories, which are:
-auth, connection, curl, deprecated, dns, file, ftp, global, http, imap, ldap,%spc%
-output, pop3, post, proxy, scp, sftp, smtp, ssh, telnet, tftp, timeout, tls,%spc%
+auth, connection, curl, deprecated, dns, file, ftp, global, http, imap, ldap,%SP
+output, pop3, post, proxy, scp, sftp, smtp, ssh, telnet, tftp, timeout, tls,%SP
 upload, verbose.
 Use "--help all" to list all options
 Use "--help [option]" to view documentation for a given option
index 3b8823644167d53ad2db8e8aee0571930b91fc7f..8f3cae15569e1d2afcb1c2b876bfd853932d388b 100644 (file)
@@ -27,7 +27,7 @@ h2 example.com 443 h3 shiny.example.com 8443 "20191231 00:00:00" 0 0
 # a comment
 h2 foo.example.com 443 h3 shiny.example.com 8443 "20291231 23:30:00" 0 0
   h1 example.com 443 h3 shiny.example.com 8443 "20121231 00:00:01" 0 0
-%tab%h3 example.com 443 h3 shiny.example.com 8443 "20131231 00:00:00" 0 0
+%TABh3 example.com 443 h3 shiny.example.com 8443 "20131231 00:00:00" 0 0
     # also a comment
 bad example.com 443 h3 shiny.example.com 8443 "20191231 00:00:00" 0 0
 rubbish
index ea126a3be7572797037cf86451898c93c5718b8f..fa0b3a377c0d8be7a96038740b64ce4e3187c88f 100644 (file)
@@ -68,7 +68,7 @@ curlx_str_singlespace
 3: ("b") 5, line 0
 4: ("\") 5, line 0
 5: (" ") 0, line 1
-6: ("%tab%") 5, line 0
+6: ("%TAB") 5, line 0
 7: ("
 ") 5, line 0
 8: ("") 5, line 0
index c8c0a19b77fc1e254f25c410b1c8956d9b3547be..31e2a8e53648aa39354b611d5683a7ab79e5827b 100644 (file)
@@ -46,7 +46,7 @@ request MOOO
 <protocol crlf="yes">
 MOOO /that.site.com/%TESTNUMBER HTTP/1.1
 Host: %HOSTIP:%HTTPPORT
-User-Agent: agent007 license to drill%tab%
+User-Agent: agent007 license to drill%TAB
 Accept: */*
 
 </protocol>
index 6d26e1b0114a44e9050861d64a6331bf5730ba3f..e75c1f3d1a434a6d7e19a8d5b4ef436aa80e41de 100644 (file)
@@ -76,7 +76,7 @@ HTTP/1.1 101 Switching Protocols
 Connection: Upgrade
 Upgrade: h2c
 
-HTTP/2 200%spc%
+HTTP/2 200%SP
 date: Tue, 09 Nov 2010 14:49:00 GMT
 last-modified: Tue, 13 Jun 2000 12:10:00 GMT
 etag: "21025-dc7-39462498"
@@ -87,7 +87,7 @@ funny-head: yesyes
 via: 1.1 nghttpx
 
 -foo-
-HTTP/2 200%spc%
+HTTP/2 200%SP
 date: Tue, 09 Nov 2010 14:49:00 GMT
 content-length: 6
 content-type: text/html
index 44780df19799387d7761b7fcbf97cf8ddb03b4ad..ecc5f6f17ce0267095c5cad40077dbc2e266e15b 100644 (file)
@@ -65,7 +65,7 @@ HTTP/1.1 101 Switching Protocols
 Connection: Upgrade
 Upgrade: h2c
 
-HTTP/2 200%spc%
+HTTP/2 200%SP
 date: Tue, 09 Nov 2010 14:49:00 GMT
 last-modified: Tue, 13 Jun 2000 12:10:00 GMT
 etag: "21025-dc7-39462498"
index 9f1b16776180e7340da1dd02ce59979e71572a0c..96acf700d3ed8a64a1c5ca756bedef1d7b5d58c3 100644 (file)
@@ -61,7 +61,7 @@ HTTP/1.1 101 Switching Protocols
 Connection: Upgrade
 Upgrade: h2c
 
-HTTP/2 200%spc%
+HTTP/2 200%SP
 date: Tue, 09 Nov 2010 14:49:00 GMT
 last-modified: Tue, 13 Jun 2000 12:10:00 GMT
 etag: "21025-dc7-39462498"
index 79a7f5f84a055e456dfb12bf5152e2d4a18abf04..d5796c7318bd89703cc400371e1f6f2c1fe384ae 100644 (file)
@@ -19,7 +19,7 @@ Content-Length: 3
 OK
 </data>
 <data1>
-HTTP/1.1 200 OK%spc%
+HTTP/1.1 200 OK%SP
 Connection: close
 Content-Length: 15
 Content-Range: bytes 50-
@@ -32,7 +32,7 @@ HTTP/1.1 301 OK swsbounce
 Location: /%TESTNUMBER
 Content-Length: 3
 
-HTTP/1.1 200 OK%spc%
+HTTP/1.1 200 OK%SP
 Connection: close
 Content-Length: 15
 Content-Range: bytes 50-
index 8d92ef578b81a79bb41c40040a3e6e9f9a90b37b..e8e8044049a59b427adf1c003772b2d346a737ec 100644 (file)
@@ -16,7 +16,7 @@ Content-Length: 3
 OK
 </data>
 <data1>
-HTTP/1.1 200 OK%spc%
+HTTP/1.1 200 OK%SP
 Connection: close
 Content-Length: 15
 
@@ -28,7 +28,7 @@ HTTP/1.1 301 OK swsbounce
 Location: /%TESTNUMBER
 Content-Length: 3
 
-HTTP/1.1 200 OK%spc%
+HTTP/1.1 200 OK%SP
 Connection: close
 Content-Length: 15
 
index d15bf1d5b60ff67b72b148422abd9c1c58353810..b5ddd4c2b9763f0f20deee9cf808a550f0412a7d 100644 (file)
@@ -59,8 +59,8 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER
 - Set-Cookie == secondcookie=2data; (1/3)
 - Set-Cookie == cookie3=data3; (2/3)
  Fold == is folding a line
- Blank ==%spc%
- Blank2 ==%spc%
+ Blank ==%SP
+ Blank2 ==%SP
 </stdout>
 </verify>
 </testcase>
index 93d1422e8bf9873a460e18f3864dcaafc5d6bfbe..3a4310037317d842212f5dcf744cf25f6d4d5f27 100644 (file)
@@ -65,7 +65,7 @@ Authorization: XXX4-HMAC-SHA256 Credential=xxx/19700101/ple/exam/xxx4_request, S
 X-Xxx-Date: 19700101T000000Z
 test3: 1234
 test2:
-test_space: t%tab%s  m%tab%   end%repeat[4 x  ]%
+test_space: t%TABs  m%TAB   end%repeat[4 x  ]%
 tesMixCase: MixCase
 
 </protocol>
index f5e38868c64bee348d4acbaca840f20d4ec191b0..90dd1d131bc15be4a64ced7a18131347d72f1301 100644 (file)
@@ -63,7 +63,7 @@ GET /aws_sigv4/testapi/test HTTP/1.1
 Host: exam.ple.com:9000
 Authorization: XXX4-HMAC-SHA256 Credential=xxx/19700101/ple/exam/xxx4_request, SignedHeaders=content-type;host;x-xxx-content-sha256;x-xxx-date, Signature=25b4cac711ea8f65010c485d3778885f5f3870d0b8ff0b3ab58a8d7eeab991ff
 X-Xxx-Date: 19700101T000000Z
-X-Xxx-Content-Sha256: %tab%arbitrary%spc%
+X-Xxx-Content-Sha256: %TABarbitrary%SP
 
 </protocol>
 </verify>
index c7fba5f8b93a0a3c16a78b63c623e3dfb67513a4..6f1d747b58087d73eba21dfb9d9b99b743f7c2cb 100644 (file)
@@ -51,11 +51,11 @@ PWD
 CWD a
 CWD path
 EPRT |1|
-PORT%spc%
+PORT%SP
 TYPE I
 SIZE %TESTNUMBER
 RETR %TESTNUMBER
-PORT%spc%
+PORT%SP
 SIZE %TESTNUMBER
 RETR %TESTNUMBER
 QUIT
index ab88d9e162c08e09e8477c341fc7d50d72da0845..889d014e2d8531ae742753ad58643b657a577776 100644 (file)
@@ -66,7 +66,7 @@ Connection: Upgrade
 %hex[%8a%808321]hex%
 </protocol>
 <stdout mode="text">
-68 65 6c 6c 6f%spc%
+68 65 6c 6c 6f%SP
 RECFLAGS: 1
 </stdout>
 <limits>
index 233905fc7915bf777d0c486b68dfcdf1ff349864..713cc27c9301443459f5c2417a72be519212cdd9 100644 (file)
@@ -24,7 +24,7 @@ Funny-head: yesyes
 </data>
 <data2 nocheck="yes">
 HTTP/1.1 200 OK swsclose
-%tab%Access-Control-Allow-Origin: *
+%TABAccess-Control-Allow-Origin: *
 Connection: Keep-Alive
 Content-Type: text/html; charset=utf-8
 Date: Wed, 10 May 2023 14:58:08 GMT
index 8478681fbd4c993d090913a961a5d689e414a438..1fed4b71e64342995c22bd5a2c12f7b26e2da647 100644 (file)
@@ -50,7 +50,7 @@ HTTP/2 GET over HTTPS
 # Verify data after the test has been "shot"
 <verify>
 <stdout crlf="headers">
-HTTP/2 200%spc%
+HTTP/2 200%SP
 date: Tue, 09 Nov 2010 14:49:00 GMT
 content-length: 6
 content-type: text/html
index a10715ff80a868f84bce4264bd8ee57b74642077..94787f1c6fda1ff59b08e5a604fa5cf1c69108bd 100644 (file)
@@ -47,7 +47,7 @@ HTTP/2 POST over HTTPS
 # Verify data after the test has been "shot"
 <verify>
 <stdout crlf="headers">
-HTTP/2 201%spc%
+HTTP/2 201%SP
 date: Tue, 09 Nov 2010 14:49:00 GMT
 content-length: 0
 funny-head: yesyes
index b23b1e6760e400cdbb194aa22c993c2171896443..34141d6780e128e307e5d42a3478c22dc2a5e7a7 100644 (file)
@@ -51,7 +51,7 @@ HTTP/2 GET using %{header_json}
 # Verify data after the test has been "shot"
 <verify>
 <stdout crlf="headers">
-HTTP/2 200%spc%
+HTTP/2 200%SP
 date: Tue, 09 Nov 2010 14:49:00 GMT
 content-length: 6
 content-type: text/html
index adf39dbd7e5050db667192e554bb79a81bc2ad64..6426b2cc846a27536153a9ddcf2fa80d64cb8f64 100644 (file)
@@ -49,7 +49,7 @@ HTTP/2 over HTTPS with -f
 # Verify data after the test has been "shot"
 <verify>
 <stdout crlf="headers">
-HTTP/2 404%spc%
+HTTP/2 404%SP
 date: Tue, 09 Nov 2010 14:49:00 GMT
 content-length: 6
 content-type: text/html
index c774bf805a5cfeaad924ec6de999917955974d40..f92cabfd32b6f323fbdb88b00c7d75db0a17fdfa 100644 (file)
@@ -58,7 +58,7 @@ Accept: */*
 
 </protocol>
 <stdout crlf="headers">
-HTTP/3 200%spc%
+HTTP/3 200%SP
 date: Tue, 09 Nov 2010 14:49:00 GMT
 last-modified: Tue, 13 Jun 2000 12:10:00 GMT
 etag: "21025-dc7-39462498"
index 8d68a582c1054a42b5cf6b71b41ce24340e5223e..99167ec48e869bc5f689fb6ee2bcec0e0cd9792a 100644 (file)
@@ -47,7 +47,7 @@ HTTP/3 POST
 # Verify data after the test has been "shot"
 <verify>
 <stdout crlf="headers">
-HTTP/3 201%spc%
+HTTP/3 201%SP
 date: Tue, 09 Nov 2010 14:49:00 GMT
 content-length: 0
 funny-head: yesyes
index 6c4b100bedbc56c09569c261ceeb6ca17fa3cf93..722d0ceb7adf926dc35dbb17bb14821bce9b4655 100644 (file)
@@ -50,7 +50,7 @@ HTTP/3 header-api
 # Verify data after the test has been "shot"
 <verify>
 <stdout crlf="headers">
-HTTP/3 200%spc%
+HTTP/3 200%SP
 date: Tue, 09 Nov 2010 14:49:00 GMT
 content-length: 6
 content-type: text/html
index d29b09f956bcae095e3e32da7b64736934e7c2af..3bdd5b4b325e07bd401856de6ca38865d591a208 100644 (file)
@@ -60,7 +60,7 @@ HTTP/1.1 101 Switching Protocols
 Connection: Upgrade
 Upgrade: h2c
 
-HTTP/2 200%spc%
+HTTP/2 200%SP
 date: Tue, 09 Nov 2010 14:49:00 GMT
 content-length: 6
 content-type: text/html
@@ -69,7 +69,7 @@ alt-svc: h2=":%HTTP2PORT", ma=315360000; persist=0
 via: 1.1 nghttpx
 
 -foo-
-HTTP/2 200%spc%
+HTTP/2 200%SP
 date: Tue, 09 Nov 2010 14:49:00 GMT
 content-length: 6
 content-type: text/html
index cc2b27b2ff6113d919b148fff56151835f038433..1a2f9d73a8923fcf84105a3bfc6c531896cbc7c2 100644 (file)
@@ -60,7 +60,7 @@ HTTP/1.1 101 Switching Protocols
 Connection: Upgrade
 Upgrade: h2c
 
-HTTP/2 200%spc%
+HTTP/2 200%SP
 date: Tue, 09 Nov 2010 14:49:00 GMT
 content-length: 6
 content-type: text/html
@@ -69,7 +69,7 @@ alt-svc: h2=":%HTTP2PORT", ma=315360000; persist=0
 via: 1.1 nghttpx
 
 -foo-
-HTTP/2 200%spc%
+HTTP/2 200%SP
 date: Tue, 09 Nov 2010 14:49:00 GMT
 content-length: 6
 content-type: text/html
index e15e97e6e02b393e020e476f2ed062346c57c732..09279fc1d714532db28693f057ffe38eb685eca6 100644 (file)
@@ -29,7 +29,7 @@ Reject using -T and -d at once
 2
 </errorcode>
 <stderr mode="text">
-Warning: You can only select one HTTP request method! You asked for both PUT%spc%
+Warning: You can only select one HTTP request method! You asked for both PUT%SP
 Warning: (-T, --upload-file) and POST (-d, --data).
 </stderr>
 </verify>
index 4f57f8dd628cbd22c8a5ddd6dd25a50bd8ed4b9f..8b0479c1f8b4ef47407625d98c62e810b81031ef 100644 (file)
@@ -44,7 +44,7 @@ User-Agent: curl/%VERSION
 extra-header: here
 Accept: replaced
 X-Custom-Header:
-X-Test: foo;%spc%
+X-Test: foo;%SP
 X-Test2: foo;
 
 GET /%TESTNUMBER HTTP/1.1
@@ -53,7 +53,7 @@ User-Agent: curl/%VERSION
 extra-header: here
 Accept: replaced
 X-Custom-Header:
-X-Test: foo;%spc%
+X-Test: foo;%SP
 X-Test2: foo;
 
 </protocol>
index 7b41703fb57e6d07c53cdbc3cdee2b1071cebb12..6cc2bc27637d2ddc3c42c28da12a1b3e82bbfc8e 100644 (file)
@@ -21,7 +21,7 @@ referrer-policy: strict-origin-when-cross-origin
 access-control-allow-methods: GET, POST, PUT, DELETE, OPTIONS
 access-control-max-age: 1728000
 access-control-allow-headers: Authorization, Content-Type, AuthorizationOauth, X-EARLY-ACCESS
-access-control-expose-headers:%spc%
+access-control-expose-headers:%SP
 vary: Accept
 etag: W/"2678f9ab2ba550d164e7cc014aefd31e"
 cache-control: max-age=0, private, must-revalidate
index 42398bd35fdbb4c07950b9f5652c8f398c3fe4f9..539aa0729dc1392ea44ffdce7d633c1b8cfca6bd 100644 (file)
@@ -56,7 +56,7 @@ Content-Type: application/x-www-form-urlencoded
 arg
 </protocol>
 <stderr mode="text">
-Warning: %LOGDIR/config:1: warning: 'data' uses unquoted whitespace. This may%spc%
+Warning: %LOGDIR/config:1: warning: 'data' uses unquoted whitespace. This may%SP
 Warning: cause side-effects. Consider double quotes.
 </stderr>
 </verify>
index 007861b4fb5b2ef6552c8342ff5e2af2d47ee2b6..715616e23c233cdb5a9d00a1ce75dac87f57f356 100644 (file)
@@ -65,7 +65,7 @@ www.loser.com FALSE   /       FALSE   2139150993      UID     99
 domain..tld    FALSE   /       FALSE   2139150993      mooo    indeed
 #HttpOnly_domain..tld  FALSE   /want   FALSE   2139150993      mooo2   indeed2
 %endif
-domain..tld    FALSE   /want   FALSE   0       empty%tab%
+domain..tld    FALSE   /want   FALSE   0       empty%TAB
 </file>
 <features>
 cookies
@@ -88,18 +88,18 @@ Cookie: empty=; mooo2=indeed2; mooo=indeed
 # This file was generated by libcurl! Edit at your own risk.
 
 domain..tld    FALSE   /want/  FALSE   0       simplyhuge      %repeat[3998 x z]%
-domain..tld    FALSE   /       FALSE   0       justaname%tab%
+domain..tld    FALSE   /       FALSE   0       justaname%TAB
 domain..tld    FALSE   /       FALSE   0       ASPSESSIONIDQGGQQSJJ    GKNBDIFAAOFDPDAIEAKDIBKE
 domain..tld    FALSE   /       FALSE   0       ckySession      temporary
 domain..tld    FALSE   /       FALSE   %days[400]      ckyPersistent   permanent
 %if large-time
-domain..tld    FALSE   /want   FALSE   0       empty%tab%
+domain..tld    FALSE   /want   FALSE   0       empty%TAB
 #HttpOnly_domain..tld  FALSE   /want   FALSE   22139150993     mooo2   indeed2
 domain..tld    FALSE   /       FALSE   22139150993     mooo    indeed
 www.loser.com  FALSE   /       FALSE   22139150993     UID     99
 www.fake.come  FALSE   /       FALSE   22147483647     cookiecliente   si
 %else
-domain..tld    FALSE   /want   FALSE   0       empty%tab%
+domain..tld    FALSE   /want   FALSE   0       empty%TAB
 #HttpOnly_domain..tld  FALSE   /want   FALSE   2139150993      mooo2   indeed2
 domain..tld    FALSE   /       FALSE   2139150993      mooo    indeed
 www.loser.com  FALSE   /       FALSE   2139150993      UID     99
index 167542fbf0978dcd024594f5577e5c5718796320..901620fa62d67d61ceebf10ccce6e677b8a0d8d9 100644 (file)
@@ -11,7 +11,7 @@ followlocation
 <data>
 HTTP/1.1 302 This is a weirdo text message swsclose
 Connection: close
-Location:%spc%
+Location:%SP
 
 This server reply is for testing
 </data>
index 5f7f8e7605e6109edbce718dcd25e9b9969f968a..a8d8ff2b6f2f588b6b59da92d79b6b38bb302e76 100644 (file)
@@ -39,7 +39,7 @@ It may contain any type of data.
 </file1>
 <file2 name="%LOGDIR/headers%TESTNUMBER">
 # This line is a comment
-X-fileheader1: This is a header from a file%spc%\r
+X-fileheader1: This is a header from a file%SP\r
 
 # This line is another comment. It precedes a folded header.
 X-fileheader2: This is #a
index b3630b50585238f3d79493e7aaa91fd655fb7465..fb20874d1d61cccdd5aecfd2a547fe0f1ebd9218 100644 (file)
@@ -36,7 +36,7 @@ machine %HOSTIP login username password%hex[%00]hex% hello
 <verify>
 <protocol crlf="yes">
 USER username
-PASS%spc%
+PASS%SP
 PWD
 EPSV
 TYPE I
index 3a3e16e08775c12451517732c345e04716d23506..f6e77e91167d676d626a1072e1b848c09b028725 100644 (file)
@@ -36,7 +36,7 @@ machine %HOSTIP login username "password"%hex[%00]hex% hello
 <verify>
 <protocol crlf="yes">
 USER username
-PASS%spc%
+PASS%SP
 PWD
 EPSV
 TYPE I
index f139516cfa087e1fbbbccbc249b01bab1f200cc3..30ac782a99a267857649acd6770ad302707cd9c8 100644 (file)
@@ -147,8 +147,8 @@ sub subbase64 {
         $$thing =~ s/%%DAYS%%/%alternatives[$d,$d2]/;
     }
 
-    $$thing =~ s/%spc%/ /g;   # space
-    $$thing =~ s/%tab%/\t/g;  # horizontal tab
+    $$thing =~ s/%SP/ /g;    # space
+    $$thing =~ s/%TAB/\t/g;  # horizontal tab
 
     # include a file
     $$thing =~ s/%include ([^%]*)%[\n\r]+/includefile($1)/ge;