summaryrefslogtreecommitdiff
path: root/tests/httpserver.pl
Commit message (Collapse)AuthorAgeFilesLines
* copyrights: update copyright year rangesDaniel Stenberg2021-09-081-1/+1
|
* tests/*server.pl: flush output before executing subprocessMarc Hoersken2021-08-181-1/+2
| | | | | | | | | | | | | | | | | | Also avoid shell processes staying around by using exec. This is necessary to avoid output data being buffering inside the process chain of Perl, Bash/Shell and our test server binaries. On non-Windows systems the exec will also make the subprocess replace the intermediate shell, but on Windows it will at least bind the processes together since there is no real fork or exec available. See: https://cygwin.com/cygwin-ug-net/highlights.html and: https://docs.microsoft.com/cpp/c-runtime-library/exec-wexec-functions Ref: https://github.com/curl/curl/pull/7530#issuecomment-900949010 Reviewed-by: Daniel Stenberg Reviewed-by: Jay Satiro Closes #7530
* curl.se: new homeDaniel Stenberg2020-11-041-1/+1
| | | | Closes #6172
* tests: run the sws server on "any port"Daniel Stenberg2020-04-181-3/+15
| | | | | | | Makes the test servers for HTTP and Gopher pop up on a currently unused port and runtests adapts to that! Closes #5247
* copyright: fix out-of-date copyright ranges and missing headersDaniel Stenberg2020-03-241-1/+1
| | | | | | | | | Reported by the new script 'scripts/copyright.pl'. The script has a regex whitelist for the files that don't need copyright headers. Removed three (mostly usesless) README files from docs/ Closes #5141
* tests: make it possible to set executable extensionsMarc Hoersken2019-12-091-2/+6
| | | | | | | | | | | | | | | | | This enables the use of Windows Subsystem for Linux (WSL) to run the testsuite against Windows binaries while using Linux servers. This commit introduces the following environment variables: - CURL_TEST_EXE_EXT: set the executable extension for all components - CURL_TEST_EXE_EXT_TOOL: set it for the curl tool only - CURL_TEST_EXE_EXT_SSH: set it for the SSH tools only Later testcurl.pl could be adjusted to make use of those variables. - CURL_TEST_EXE_EXT_SRV: set it for the test servers only (This is one of several commits to support use of WSL for the tests.) Closes https://github.com/curl/curl/pull/3899
* spelling fixesklemens2017-03-261-1/+1
| | | | Closes #1356
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-1/+1
|
* code/docs: Use Unix rather than UNIX to avoid use of the trademarkSteve Holme2014-12-261-1/+1
| | | | | Use Unix when generically writing about Unix based systems as UNIX is the trademark and should only be used in a particular product's name.
* tests: add HTTP UNIX socket server testing supportPeter Wu2014-12-041-1/+14
| | | | | | | | | The variable `$ipvnum` can now contain "unix" besides the integers 4 and 6 since the variable. Functions which receive this parameter have their `$port` parameter renamed to `$port_or_path` to support a path to the UNIX domain socket (as a "port" is only meaningful for TCP). Signed-off-by: Peter Wu <peter@lekensteyn.nl>
* runtests and friends: Do not add undefined values to @INCFabian Keil2012-12-061-1/+2
| | | | | On FreeBSD this fixes the warning: Use of uninitialized value $p in string eq at /usr/local/lib/perl5/5.14.2/BSDPAN/BSDPAN.pm line 36.
* Remove the --fork option of sws, since it makes refactoring to use poll more ↵Joe Mason2012-08-021-5/+0
| | | | | | complicated and should be redundant once we poll
* httpserver.pl: reorder sws command line optionsYang Tse2012-01-041-1/+1
| | | | | | make 'pidfile' and 'logfile' options appear first on command line in order to ensure that processing of other options which write to logfile do this to intended file and not the default one.
* test proxy supports CONNECTDaniel Stenberg2012-01-031-1/+13
| | | | | | | | | | | | There's a new 'http-proxy' server for tests that runs on a separate port and lets clients do HTTP CONNECT to other ports on the same host to allow us to test HTTP "tunneling" properly. Test cases now have a <proxy> section in <verify> to check that the proxy protocol part matches correctly. Test case 80, 83, 95, 275, 503 and 1078 have been converted. Test 1316 was added.
* gopher tests: use sws and adjusted to more standard styleDaniel Stenberg2010-08-251-0/+5
|
* restore executable bits on some filesDaniel Stenberg2010-03-241-0/+0
|
* remove the CVSish $Id$ linesDaniel Stenberg2010-03-241-1/+0
|
* Start using the centralized pidfile and logfile name generationYang Tse2010-01-081-25/+95
| | | | subroutines for http and tftp test suite servers.
* sws and tftpd command line option naming adjustmentsYang Tse2010-01-081-1/+9
|
* Revert last change since it breaks running the test suiteYang Tse2007-11-231-3/+3
| | | | when builddir is different from srcdir.
* Improve chance of running runtests.pl from outside theYang Tse2007-11-231-3/+3
| | | | source tree 'tests' directory
* support --fork and pass that on to swsDaniel Stenberg2006-04-101-1/+6
|
* make sure the ipv6 http server gets its pid stored in a separate fileDaniel Stenberg2004-12-141-1/+6
|
* HTTP IPv6 support added to the test suiteDaniel Stenberg2004-12-111-1/+5
|
* provide a source path to the servers to make them find the tests when runDaniel Stenberg2004-02-121-1/+6
| | | | outside the source dir, not needing any symlinks
* cut off the old perl one, this only runs the C coded versionDaniel Stenberg2002-02-191-212/+3
|
* improved functionality for new timeout testsDaniel Stenberg2001-11-021-0/+20
|
* now reports the CORRECT pid on demandDaniel Stenberg2001-10-241-1/+3
|
* don't use 'strict' anymore, as it doesn't work good with the cygwin fixesDaniel Stenberg2001-10-171-2/+2
| | | | also, always kill/restart the HTTP server on startup if it is our test server
* Kevin Roth's fixes to make tests work on cygwinDaniel Stenberg2001-10-101-0/+3
|
* made it respond as a http proxy on CONNECTDaniel Stenberg2001-09-181-2/+13
|
* fixesDaniel Stenberg2001-05-281-5/+10
|
* adjusted to the new test case formatsDaniel Stenberg2001-05-231-3/+5
|
* pid files fixes, ftp server already-running-but-no-control checkDaniel Stenberg2001-05-141-1/+1
|
* always append the incoming request to the server.input file, it allowsDaniel Stenberg2001-03-141-1/+1
| | | | the mainscript to verify a whole series of requests
* output the protocol data to stderr when verbose is onDaniel Stenberg2001-03-121-1/+6
|
* minor output fixDaniel Stenberg2001-01-271-1/+1
|
* uses stricter outputDaniel Stenberg2000-11-171-8/+21
|
* moved out the FTP partDaniel Stenberg2000-11-161-135/+12
|
* 'use strict' compliantDaniel Stenberg2000-11-151-16/+71
| | | | | better complains if there are missing input files for a test case explaced exit-calls with returns instead
* somewhat more functioning FTPDaniel Stenberg2000-11-131-12/+18
|
* basic and early ftp supportDaniel Stenberg2000-11-131-2/+30
|
* converted shell script to perlDaniel Stenberg2000-11-131-4/+58
|
* if the server is already running when the script is started, it now verifiesDaniel Stenberg2000-11-131-21/+29
| | | | that it actually is our test server that runs
* changed pid stuff, made it work with rfc1867 posts and made it work betterDaniel Stenberg2000-11-131-4/+9
| | | | on paths
* new perl http server that works betterDaniel Stenberg2000-11-131-0/+132