aboutsummaryrefslogtreecommitdiff
path: root/tests/httpserver.pl
AgeCommit message (Collapse)Author
2020-04-18tests: run the sws server on "any port"Daniel Stenberg
Makes the test servers for HTTP and Gopher pop up on a currently unused port and runtests adapts to that! Closes #5247
2020-03-24copyright: fix out-of-date copyright ranges and missing headersDaniel Stenberg
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
2019-12-09tests: make it possible to set executable extensionsMarc Hoersken
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
2017-03-26spelling fixesklemens
Closes #1356
2016-02-03URLs: change all http:// URLs to https://Daniel Stenberg
2014-12-26code/docs: Use Unix rather than UNIX to avoid use of the trademarkSteve Holme
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.
2014-12-04tests: add HTTP UNIX socket server testing supportPeter Wu
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>
2012-12-06runtests and friends: Do not add undefined values to @INCFabian Keil
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.
2012-08-02Remove the --fork option of sws, since it makes refactoring to use poll more ↵Joe Mason
complicated and should be redundant once we poll
2012-01-04httpserver.pl: reorder sws command line optionsYang Tse
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.
2012-01-03test proxy supports CONNECTDaniel Stenberg
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.
2010-08-25gopher tests: use sws and adjusted to more standard styleDaniel Stenberg
2010-03-24restore executable bits on some filesDaniel Stenberg
2010-03-24remove the CVSish $Id$ linesDaniel Stenberg
2010-01-08Start using the centralized pidfile and logfile name generationYang Tse
subroutines for http and tftp test suite servers.
2010-01-08sws and tftpd command line option naming adjustmentsYang Tse
2007-11-23Revert last change since it breaks running the test suiteYang Tse
when builddir is different from srcdir.
2007-11-23Improve chance of running runtests.pl from outside theYang Tse
source tree 'tests' directory
2006-04-10support --fork and pass that on to swsDaniel Stenberg
2004-12-14make sure the ipv6 http server gets its pid stored in a separate fileDaniel Stenberg
2004-12-11HTTP IPv6 support added to the test suiteDaniel Stenberg
2004-02-12provide a source path to the servers to make them find the tests when runDaniel Stenberg
outside the source dir, not needing any symlinks
2002-02-19cut off the old perl one, this only runs the C coded versionDaniel Stenberg
2001-11-02improved functionality for new timeout testsDaniel Stenberg
2001-10-24now reports the CORRECT pid on demandDaniel Stenberg
2001-10-17don't use 'strict' anymore, as it doesn't work good with the cygwin fixesDaniel Stenberg
also, always kill/restart the HTTP server on startup if it is our test server
2001-10-10Kevin Roth's fixes to make tests work on cygwinDaniel Stenberg
2001-09-18made it respond as a http proxy on CONNECTDaniel Stenberg
2001-05-28fixesDaniel Stenberg
2001-05-23adjusted to the new test case formatsDaniel Stenberg
2001-05-14pid files fixes, ftp server already-running-but-no-control checkDaniel Stenberg
2001-03-14always append the incoming request to the server.input file, it allowsDaniel Stenberg
the mainscript to verify a whole series of requests
2001-03-12output the protocol data to stderr when verbose is onDaniel Stenberg
2001-01-27minor output fixDaniel Stenberg
2000-11-17uses stricter outputDaniel Stenberg
2000-11-16moved out the FTP partDaniel Stenberg
2000-11-15'use strict' compliantDaniel Stenberg
better complains if there are missing input files for a test case explaced exit-calls with returns instead
2000-11-13somewhat more functioning FTPDaniel Stenberg
2000-11-13basic and early ftp supportDaniel Stenberg
2000-11-13converted shell script to perlDaniel Stenberg
2000-11-13if the server is already running when the script is started, it now verifiesDaniel Stenberg
that it actually is our test server that runs
2000-11-13changed pid stuff, made it work with rfc1867 posts and made it work betterDaniel Stenberg
on paths
2000-11-13new perl http server that works betterDaniel Stenberg