START usr.bin/ftp 2024-12-31T05:59:33Z ==== t-dasho-1 ==== Testing ftp -V file:../src/- ==== t-dasho-2 ==== Testing ftp -V -oX file:../src/- ==== t-dasho-3 ==== Testing ftp -V -o- -oX file:../src/- ==== t-dasho-4 ==== Testing ftp -V -o- file:../src/- ==== t-dasho-5 ==== Testing ftp -V -oX -o- file:../src/- ==== t-dasho-6 ==== Testing ftp -V -o./- file:../src/- ==== t-dasho-7 ==== Testing ftp -V file:../src/X ==== t-dasho-8 ==== Testing ftp -V -oX file:../src/X ==== t-dasho-9 ==== Testing ftp -V -o- -oX file:../src/X ==== t-dasho-10 ==== Testing ftp -V -o- file:../src/X ==== t-dasho-11 ==== Testing ftp -V -oX -o- file:../src/X ==== t-dasho-12 ==== Testing ftp -V -o./- file:../src/X ==== t-redirect-1 ==== Testing http://localhost:9000/path/to/file => http://localhost:9001/another/file => http://localhost:9001/another/file Listening on 0.0.0.0 9000 Trying 127.0.0.1... Requesting http://localhost:9000/path/to/file Connection received on localhost 30625 GET /path/to/file HTTP/1.1 Connection: close Host: localhost:9000 User-Agent: OpenBSD ftp Accept: */* Redirected to http://localhost:9001/another/file Trying 127.0.0.1... ftp: connect: Connection refused ==== t-redirect-2 ==== Testing http://localhost:9000/path/to/file => http://localhost:9001/ => http://localhost:9001/ Listening on 0.0.0.0 9000 Trying 127.0.0.1... Requesting http://localhost:9000/path/to/file Connection received on localhost 37946 GET /path/to/file HTTP/1.1 Connection: close Host: localhost:9000 User-Agent: OpenBSD ftp Accept: */* Redirected to http://localhost:9001/ Trying 127.0.0.1... ftp: connect: Connection refused ==== t-redirect-3 ==== Testing http://localhost:9000/path/to/file => /another/file => http://localhost:9000/another/file Listening on 0.0.0.0 9000 Trying 127.0.0.1... Requesting http://localhost:9000/path/to/file Connection received on localhost 22517 GET /path/to/file HTTP/1.1 Connection: close Host: localhost:9000 User-Agent: OpenBSD ftp Accept: */* Redirected to http://localhost:9000/another/file Trying 127.0.0.1... ftp: connect: Connection reset by peer ==== t-redirect-4 ==== Testing http://localhost:9000/path/to/file => / => http://localhost:9000/ Listening on 0.0.0.0 9000 Trying 127.0.0.1... Requesting http://localhost:9000/path/to/file Connection received on localhost 18526 GET /path/to/file HTTP/1.1 Connection: close Host: localhost:9000 User-Agent: OpenBSD ftp Accept: */* Redirected to http://localhost:9000/ Trying 127.0.0.1... ftp: connect: Connection refused ==== t-redirect-5 ==== Testing http://localhost:9000/path/to/file => another/file => http://localhost:9000/path/to/another/file Listening on 0.0.0.0 9000 Trying 127.0.0.1... Requesting http://localhost:9000/path/to/file Connection received on localhost 32184 GET /path/to/file HTTP/1.1 Connection: close Host: localhost:9000 User-Agent: OpenBSD ftp Accept: */* Redirected to http://localhost:9000/path/to/another/file Trying 127.0.0.1... ftp: connect: Connection refused ==== t-redirect-6 ==== Testing http://localhost:9000/path/to/file/ => another/file => http://localhost:9000/path/to/file/another/file Listening on 0.0.0.0 9000 Trying 127.0.0.1... Requesting http://localhost:9000/path/to/file/ Connection received on localhost 5804 GET /path/to/file/ HTTP/1.1 Connection: close Host: localhost:9000 User-Agent: OpenBSD ftp Accept: */* Redirected to http://localhost:9000/path/to/file/another/file Trying 127.0.0.1... ftp: connect: Connection refused ==== t-redirect-7 ==== Testing http://localhost:9000/path/to/file => ../ => http://localhost:9000/path/to/../ Listening on 0.0.0.0 9000 Trying 127.0.0.1... Requesting http://localhost:9000/path/to/file Connection received on localhost 38480 GET /path/to/file HTTP/1.1 Connection: close Host: localhost:9000 User-Agent: OpenBSD ftp Accept: */* Redirected to http://localhost:9000/path/to/../ Trying 127.0.0.1... ftp: connect: Connection refused ==== t-redirect-8 ==== Testing http://localhost:9000/path/to/file => http://[localhost]:9001/another/file => http://[localhost]:9001/another/file Listening on 0.0.0.0 9000 Trying 127.0.0.1... Requesting http://localhost:9000/path/to/file Connection received on localhost 5444 GET /path/to/file HTTP/1.1 Connection: close Host: localhost:9000 User-Agent: OpenBSD ftp Accept: */* Redirected to http://[localhost]:9001/another/file Trying 127.0.0.1... ftp: connect: Connection refused ==== t-redirect-9 ==== Testing http://localhost:9000/path/to/file => http://[localhost]:9001/ => http://[localhost]:9001/ Listening on 0.0.0.0 9000 Trying 127.0.0.1... Requesting http://localhost:9000/path/to/file Connection received on localhost 4119 GET /path/to/file HTTP/1.1 Connection: close Host: localhost:9000 User-Agent: OpenBSD ftp Accept: */* Redirected to http://[localhost]:9001/ Trying 127.0.0.1... ftp: connect: Connection refused ==== t-redirect-10 ==== Testing http://localhost:9000/p/x?a#b?c#d => another/file => http://localhost:9000/p/another/file Listening on 0.0.0.0 9000 Trying 127.0.0.1... Requesting http://localhost:9000/p/x?a#b?c#d Connection received on localhost 46190 GET /p/x?a%23b?c%23d HTTP/1.1 Connection: close Host: localhost:9000 User-Agent: OpenBSD ftp Accept: */* Redirected to http://localhost:9000/p/another/file Trying 127.0.0.1... ftp: connect: Connection refused ==== t-redirect-11 ==== Testing http://localhost:9000/p/x#b?c#d => another/file => http://localhost:9000/p/another/file Listening on 0.0.0.0 9000 Trying 127.0.0.1... Requesting http://localhost:9000/p/x#b?c#d Connection received on localhost 20238 GET /p/x%23b?c%23d HTTP/1.1 Connection: close Host: localhost:9000 User-Agent: OpenBSD ftp Accept: */* Redirected to http://localhost:9000/p/another/file Trying 127.0.0.1... Requesting http://localhost:9000/p/another/file ftp: Writing HTTP request: Broken pipe ==== t-redirect-12 ==== Testing http://localhost:9000/p/x/#b?c#d => another/file => http://localhost:9000/p/x/another/file Listening on 0.0.0.0 9000 Trying 127.0.0.1... Requesting http://localhost:9000/p/x/#b?c#d Connection received on localhost 25662 GET /p/x/%23b?c%23d HTTP/1.1 Connection: close Host: localhost:9000 User-Agent: OpenBSD ftp Accept: */* Redirected to http://localhost:9000/p/x/another/file Trying 127.0.0.1... Requesting http://localhost:9000/p/x/another/file ftp: Writing HTTP request: Broken pipe ==== t-redirect-13 ==== Testing http://localhost:9000/p/x?aa#bb => another/file?x#yz => http://localhost:9000/p/another/file?x Listening on 0.0.0.0 9000 Trying 127.0.0.1... Requesting http://localhost:9000/p/x?aa#bb Connection received on localhost 18996 GET /p/x?aa%23bb HTTP/1.1 Connection: close Host: localhost:9000 User-Agent: OpenBSD ftp Accept: */* Redirected to http://localhost:9000/p/another/file?x Trying 127.0.0.1... ftp: connect: Connection refused ==== t-redirect-14 ==== Testing http://localhost:9000/p/x/?aa#bb => another/file?x#yz => http://localhost:9000/p/x/another/file?x Listening on 0.0.0.0 9000 Trying 127.0.0.1... Requesting http://localhost:9000/p/x/?aa#bb Connection received on localhost 9466 GET /p/x/?aa%23bb HTTP/1.1 Connection: close Host: localhost:9000 User-Agent: OpenBSD ftp Accept: */* Redirected to http://localhost:9000/p/x/another/file?x Trying 127.0.0.1... ftp: connect: Connection refused ==== t-redirect-15 ==== Testing http://localhost:9000/p/x#y?z/k#l?m => file?a#b?c#d => http://localhost:9000/p/file?a Listening on 0.0.0.0 9000 Trying 127.0.0.1... Requesting http://localhost:9000/p/x#y?z/k#l?m Connection received on localhost 33518 GET /p/x%23y?z/k%23l?m HTTP/1.1 Connection: close Host: localhost:9000 User-Agent: OpenBSD ftp Accept: */* Redirected to http://localhost:9000/p/file?a Trying 127.0.0.1... ftp: connect: Connection refused PASS usr.bin/ftp Duration 0m02.77s