START usr.bin/ftp 2024-12-30T19:46:21Z ==== 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... Connection received on localhost 28931 Requesting http://localhost:9000/path/to/file 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... Connection received on localhost 37672 Requesting http://localhost:9000/path/to/file 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... Connection received on localhost 38804 Requesting http://localhost:9000/path/to/file 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... Requesting http://localhost:9000/another/file ftp: Receiving HTTP reply: 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... Connection received on localhost 4128 Requesting http://localhost:9000/path/to/file 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... Requesting http://localhost:9000/ ftp: Writing HTTP request: Broken pipe ==== 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... Connection received on localhost 3240 Requesting http://localhost:9000/path/to/file 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... Connection received on localhost 44619 Requesting http://localhost:9000/path/to/file/ 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... Requesting http://localhost:9000/path/to/file/another/file ftp: Writing HTTP request: Broken pipe ==== 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... Connection received on localhost 37316 Requesting http://localhost:9000/path/to/file 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... Requesting http://localhost:9000/path/to/../ ftp: Writing HTTP request: Broken pipe ==== 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... Connection received on localhost 8159 Requesting http://localhost:9000/path/to/file 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... Connection received on localhost 41056 Requesting http://localhost:9000/path/to/file 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... Connection received on localhost 23730 Requesting http://localhost:9000/p/x?a#b?c#d 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... Requesting http://localhost:9000/p/another/file ftp: Writing HTTP request: Broken pipe ==== 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... Connection received on localhost 30815 Requesting http://localhost:9000/p/x#b?c#d 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: Receiving HTTP reply: Connection reset by peer ==== 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... Connection received on localhost 20683 Requesting http://localhost:9000/p/x/#b?c#d 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... ftp: connect: Connection reset by peer ==== 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... Connection received on localhost 41708 Requesting http://localhost:9000/p/x?aa#bb 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... Requesting http://localhost:9000/p/another/file?x ftp: Writing HTTP request: Broken pipe ==== 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... Connection received on localhost 7296 Requesting http://localhost:9000/p/x/?aa#bb 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... Requesting http://localhost:9000/p/x/another/file?x ftp: Writing HTTP request: Broken pipe ==== 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... Connection received on localhost 5489 Requesting http://localhost:9000/p/x#y?z/k#l?m 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... Requesting http://localhost:9000/p/file?a ftp: Writing HTTP request: Broken pipe PASS usr.bin/ftp Duration 0m02.68s