xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | FTP |
| 6 | --location-trusted |
| 7 | </keywords> |
| 8 | </info> |
| 9 | |
| 10 | # |
| 11 | # Server-side |
| 12 | <reply> |
| 13 | <data> |
| 14 | HTTP/1.1 301 redirect |
| 15 | Date: Tue, 09 Nov 2010 14:49:00 GMT |
| 16 | Server: test-server/fake |
| 17 | Content-Length: 0 |
| 18 | Connection: close |
| 19 | Content-Type: text/html |
| 20 | Location: ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER0002 |
| 21 | |
| 22 | </data> |
| 23 | <data2> |
| 24 | data |
| 25 | to |
| 26 | see |
| 27 | that FTP |
| 28 | works |
| 29 | so does it? |
| 30 | </data2> |
| 31 | |
| 32 | <datacheck> |
| 33 | HTTP/1.1 301 redirect |
| 34 | Date: Tue, 09 Nov 2010 14:49:00 GMT |
| 35 | Server: test-server/fake |
| 36 | Content-Length: 0 |
| 37 | Connection: close |
| 38 | Content-Type: text/html |
| 39 | Location: ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER0002 |
| 40 | |
| 41 | data |
| 42 | to |
| 43 | see |
| 44 | that FTP |
| 45 | works |
| 46 | so does it? |
| 47 | </datacheck> |
| 48 | |
| 49 | </reply> |
| 50 | |
| 51 | # |
| 52 | # Client-side |
| 53 | <client> |
| 54 | <server> |
| 55 | http |
| 56 | ftp |
| 57 | </server> |
| 58 | <name> |
| 59 | HTTP with auth redirected to FTP allowing auth to continue |
| 60 | </name> |
| 61 | <command> |
| 62 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER --location-trusted -u joe:secret |
| 63 | </command> |
| 64 | </client> |
| 65 | |
| 66 | # |
| 67 | # Verify data after the test has been "shot" |
| 68 | <verify> |
| 69 | <protocol> |
| 70 | GET /%TESTNUMBER HTTP/1.1
|
| 71 | Host: %HOSTIP:%HTTPPORT
|
| 72 | Authorization: Basic am9lOnNlY3JldA==
|
| 73 | User-Agent: curl/%VERSION
|
| 74 | Accept: */*
|
| 75 |
|
| 76 | USER joe
|
| 77 | PASS secret
|
| 78 | PWD
|
| 79 | CWD a
|
| 80 | CWD path
|
| 81 | EPSV
|
| 82 | TYPE I
|
| 83 | SIZE %TESTNUMBER0002
|
| 84 | RETR %TESTNUMBER0002
|
| 85 | QUIT
|
| 86 | </protocol> |
| 87 | </verify> |
| 88 | </testcase> |