• Home
  • Raw
  • Download

Lines Matching +full:before +full:- +full:script

1 <!--
4 SPDX-License-Identifier: curl
5 -->
12 in its own line. Comments are either XML-style (enclosed with `<!--` and
13 `-->`) or shell script style (beginning with `#`) and must appear on their own
43 or even percent-encoded individual bytes. As an example, insert the HTTP
56 %hex[ %XX-encoded data to decode ]hex%
80 remember that the ordinary variables are expanded before the include happens
96 Accept-Encoding
103 Accept-Encoding: not-brotli
110 Accept-Encoding: brotli
112 Accept-Encoding: nothing
124 - `%CLIENT6IP` - IPv6 address of the client running curl
125 - `%CLIENTIP` - IPv4 address of the client running curl
126 - `%CURL` - Path to the curl executable
127 - `%FILE_PWD` - Current directory, on Windows prefixed with a slash
128 - `%FTP6PORT` - IPv6 port number of the FTP server
129 - `%FTPPORT` - Port number of the FTP server
130 - `%FTPSPORT` - Port number of the FTPS server
131 - `%FTPTIME2` - Timeout in seconds that should be just sufficient to receive a
133 - `%FTPTIME3` - Even longer than `%FTPTIME2`
134 - `%GOPHER6PORT` - IPv6 port number of the Gopher server
135 - `%GOPHERPORT` - Port number of the Gopher server
136 - `%GOPHERSPORT` - Port number of the Gophers server
137 - `%HOST6IP` - IPv6 address of the host running this test
138 - `%HOSTIP` - IPv4 address of the host running this test
139 - `%HTTP6PORT` - IPv6 port number of the HTTP server
140 - `%HTTPPORT` - Port number of the HTTP server
141 - `%HTTP2PORT` - Port number of the HTTP/2 server
142 - `%HTTPSPORT` - Port number of the HTTPS server
143 - `%HTTPSPROXYPORT` - Port number of the HTTPS-proxy
144 - `%HTTPTLS6PORT` - IPv6 port number of the HTTP TLS server
145 - `%HTTPTLSPORT` - Port number of the HTTP TLS server
146 - `%HTTPUNIXPATH` - Path to the Unix socket of the HTTP server
147 - `%SOCKSUNIXPATH` - Path to the Unix socket of the SOCKS server
148 - `%IMAP6PORT` - IPv6 port number of the IMAP server
149 - `%IMAPPORT` - Port number of the IMAP server
150 - `%LOGDIR` - Log directory relative to %PWD
151 - `%MQTTPORT` - Port number of the MQTT server
152 - `%TELNETPORT` - Port number of the telnet server
153 - `%NOLISTENPORT` - Port number where no service is listening
154 - `%POP36PORT` - IPv6 port number of the POP3 server
155 - `%POP3PORT` - Port number of the POP3 server
156 - `%POSIX_PWD` - Current directory somewhat mingw friendly
157 - `%PROXYPORT` - Port number of the HTTP proxy
158 - `%PWD` - Current directory
159 - `%RTSP6PORT` - IPv6 port number of the RTSP server
160 - `%RTSPPORT` - Port number of the RTSP server
161 - `%SMBPORT` - Port number of the SMB server
162 - `%SMBSPORT` - Port number of the SMBS server
163 - `%SMTP6PORT` - IPv6 port number of the SMTP server
164 - `%SMTPPORT` - Port number of the SMTP server
165 - `%SOCKSPORT` - Port number of the SOCKS4/5 server
166 - `%SRCDIR` - Full path to the source dir
167 - `%SSHPORT` - Port number of the SCP/SFTP server
168 - `%SSHSRVMD5` - MD5 of SSH server's public key
169 - `%SSHSRVSHA256` - SHA256 of SSH server's public key
170 - `%SSH_PWD` - Current directory friendly for the SSH server
171 - `%TESTNUMBER` - Number of the test case
172 - `%TFTP6PORT` - IPv6 port number of the TFTP server
173 - `%TFTPPORT` - Port number of the TFTP server
174 - `%USER` - Login ID of the user running the test
175 - `%VERSION` - the full version number of the tested curl
183 - **info** provides information about the test case
185 - **reply** is used for the server to know what to send as a reply for the
188 - **client** defines how the client should behave
190 - **verify** defines how to verify that the data stored after a command has
199 A newline-separated list of keywords describing what this test case uses and
202 tests. Keywords must begin with an alphabetic character, `-`, `[` or `{` and
215 The `text-ci` make target automatically skips test with the `flaky` keyword.
217 Tests that have strict timing dependencies have the `timing-dependent` keyword.
226 arrived safely. Set `nocheck="yes"` to prevent the test script from verifying
241 `base64=yes` means that the data provided in the test-file is a chunk of data
250 should be cut off from the data before sending or comparing it.
257 sure that there has been a CWD done first to a directory named `test-[NUM]`
265 - The test number in the request line is >10000 and this is the remainder
267 - The request was HTTP and included digest details, which adds 1000 to `NUM`
268 - If an HTTP request is NTLM type-1, it adds 1001 to `NUM`
269 - If an HTTP request is NTLM type-3, it adds 1002 to `NUM`
270 - If an HTTP request is Basic and `NUM` is already >=1000, it adds 1 to `NUM`
271 - If an HTTP request is Negotiate, `NUM` gets incremented by one for each
291 data before comparing with the one actually received by the client.
297 The contents of numbered `datacheck` sections are appended to the non-numbered
301 number to return on a ftp SIZE command (set to -1 to make this command fail)
304 what to send back if the client sends a (FTP) `MDTM` command, set to -1 to
308 special purpose server-command to control its behavior *after* the
312 `wait [secs]` - Pause for the given time
315 Special-commands for the server.
318 test script, to allow servers to read that to know what test the client is
323 - `REPLY [command] [return value] [response string]` - Changes how the server
328 - `REPLYLF` (like above but sends the response terminated with LF-only and not
330 - `COUNT [command] [num]` - Do the `REPLY` change for `[command]` only `[num]`
331 times and then go back to the built-in approach
332 - `DELAY [command] [secs]` - Delay responding to this command for the given
334 - `RETRWEIRDO` - Enable the "weirdo" RETR case when multiple response lines
336 - `RETRNOSIZE` - Make sure the RETR response doesn't contain the size of the
338 - `RETRSIZE [size]` - Force RETR response to contain the specified size
339 - `NOSAVE` - Don't actually save what is received
340 - `SLOWDOWN` - Send FTP responses with 0.01 sec delay between each byte
341 - `PASVBADIP` - makes PASV send back an illegal IP in its 227 response
342 - `CAPA [capabilities]` - Enables support for and specifies a list of space
345 - `AUTH [mechanisms]` - Enables support for SASL authentication and specifies
347 - `STOR [msg]` respond with this instead of default after `STOR`
351 - `auth_required` if this is set and a POST/PUT is made without auth, the
353 - `delay: [msecs]` - delay this amount after connection
354 - `idle` - do nothing after receiving the request, just "sit idle"
355 - `stream` - continuously send data to the client, never-ending
356 - `writedelay: [msecs]` delay this amount between reply packets
357 - `skip: [num]` - instructs the server to ignore reading this many bytes from
359 - `rtp: part [num] channel [num] size [num]` - stream a fake RTP packet for
361 - `connection-monitor` - When used, this will log `[DISCONNECT]` to the
363 - `upgrade` - when an HTTP upgrade header is found, the server will upgrade to
365 - `swsclose` - instruct server to close connection after response
366 - `no-expect` - don't read the request body if Expect: is present
377 - `dict`
378 - `file`
379 - `ftp`
380 - `ftp-ipv6`
381 - `ftps`
382 - `gopher`
383 - `gopher-ipv6`
384 - `gophers`
385 - `http`
386 - `http/2`
387 - `http-ipv6`
388 - `http-proxy`
389 - `https`
390 - `https-proxy`
391 - `httptls+srp`
392 - `httptls+srp-ipv6`
393 - `http-unix`
394 - `imap`
395 - `mqtt`
396 - `none`
397 - `pop3`
398 - `rtsp`
399 - `rtsp-ipv6`
400 - `scp`
401 - `sftp`
402 - `smb`
403 - `smtp`
404 - `socks4`
405 - `socks5`
406 - `socks5unix`
407 - `telnet`
408 - `tftp`
426 - `alt-svc`
427 - `bearssl`
428 - `brotli`
429 - `c-ares`
430 - `CharConv`
431 - `cookies`
432 - `crypto`
433 - `debug`
434 - `DoH`
435 - `getrlimit`
436 - `GnuTLS`
437 - `GSS-API`
438 - `h2c`
439 - `headers-api`
440 - `HSTS`
441 - `HTTP-auth`
442 - `http/2`
443 - `http/3`
444 - `https-proxy`
445 - `hyper`
446 - `idn`
447 - `ipv6`
448 - `Kerberos`
449 - `large_file`
450 - `large-time` (time_t is larger than 32 bit)
451 - `ld_preload`
452 - `libssh2`
453 - `libssh`
454 - `oldlibssh` (versions before 0.9.4)
455 - `libz`
456 - `manual`
457 - `mbedtls`
458 - `Mime`
459 - `netrc`
460 - `nghttpx`
461 - `nghttpx-h3`
462 - `NTLM`
463 - `NTLM_WB`
464 - `OpenSSL`
465 - `parsedate`
466 - `proxy`
467 - `PSL`
468 - `rustls`
469 - `Schannel`
470 - `sectransp`
471 - `shuffle-dns`
472 - `socks`
473 - `SPNEGO`
474 - `SSL`
475 - `SSLpinning`
476 - `SSPI`
477 - `threaded-resolver`
478 - `TLS-SRP`
479 - `TrackMemory`
480 - `typecheck`
481 - `threadsafe`
482 - `Unicode`
483 - `unittest`
484 - `unix-sockets`
485 - `verbose-strings`
486 - `wakeup`
487 - `win32`
488 - `wolfssh`
489 - `wolfssl`
490 - `xattr`
491 - `zstd`
504 A command line that if set gets run by the test script before the test. If an
505 output is displayed by the command or if the return code is non-zero, the test
506 will be skipped and the (single-line) output will be displayed as reason for
510 A command line that if set gets run by the test script after the test. If
511 the command exists with a non-zero status code, the test will be considered
527 Set the given environment variables to the specified value before the actual
534 ### `<command [option="no-q/no-output/no-include/force-output/binary-trace"] [timeout="secs"][delay…
539 number (N) will be used by the test-server to load test case N and return the
549 Set `type="perl"` to write the test case as a perl script. It implies that
552 Set `type="shell"` to write the test case as a shell script. It implies that
555 Set `option="no-output"` to prevent the test script to slap on the `--output`
556 argument that directs the output to a file. The `--output` is also not added
559 Set `option="force-output"` to make use of `--output` even when the test is
562 Set `option="no-include"` to prevent the test script to slap on the
563 `--include` argument.
565 Set `option="no-q"` avoid using `-q` as the first argument in the curl command
568 Set `option="binary-trace"` to use `--trace` instead of `--trace-ascii` for
569 tracing. Suitable for binary-oriented protocols such as MQTT.
580 completed execution and before the `<postcheck>` section runs. The "secs"
586 This creates the named file with this content before the test case is run,
596 before comparing with the one actually received by the client
605 One regex per line that is removed from the protocol dumps before the
607 changing protocol data such as port numbers or user-agent strings.
616 the trailing newline of this given data before comparing with the one actually
617 sent by the client The `<strip>` and `<strippart>` rules are applied before
625 The protocol dump curl should transmit to an HTTP proxy (when the http-proxy
627 of this given data before comparing with the one actually sent by the client
628 The `<strip>` and `<strippart>` rules are applied before comparisons are made.
637 before comparing with the one actually received by the client
646 before comparing with the one actually received by the client
668 One perl op per line that operates on the output file or stdout before being
686 disable - disables the valgrind log check for this test