lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | FTP |
| 5 | HTTP |
| 6 | HTTP PUT |
| 7 | HTTP proxy |
| 8 | </keywords> |
| 9 | </info> |
| 10 | |
| 11 | # Server-side |
| 12 | <reply> |
| 13 | <data> |
| 14 | HTTP/1.0 200 OK swsclose |
| 15 | Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 16 | Server: test-server/fake |
| 17 | |
| 18 | blablabla |
| 19 | |
| 20 | </data> |
| 21 | </reply> |
| 22 | |
| 23 | # Client-side |
| 24 | <client> |
| 25 | <server> |
| 26 | http |
| 27 | </server> |
| 28 | <features> |
| 29 | ftp |
| 30 | </features> |
| 31 | <name> |
| 32 | HTTP PUT to a FTP URL with username+password - over HTTP proxy |
| 33 | </name> |
| 34 | <command> |
| 35 | -x http://%HOSTIP:%HTTPPORT ftp://daniel:mysecret@host.com/we/want/208 -T log/test208.txt |
| 36 | </command> |
| 37 | <file name="log/test208.txt"> |
| 38 | Weird |
| 39 | file |
| 40 | to |
| 41 | upload |
| 42 | for |
| 43 | testing |
| 44 | the |
| 45 | PUT |
| 46 | feature |
| 47 | </file> |
| 48 | </client> |
| 49 | |
| 50 | # Verify data after the test has been "shot" |
| 51 | <verify> |
| 52 | <strip> |
| 53 | ^User-Agent:.* |
| 54 | </strip> |
| 55 | <protocol> |
| 56 | PUT ftp://daniel:mysecret@host.com/we/want/208 HTTP/1.1
|
| 57 | Host: host.com:21
|
| 58 | Authorization: Basic ZGFuaWVsOm15c2VjcmV0
|
| 59 | Accept: */*
|
| 60 | Proxy-Connection: Keep-Alive
|
| 61 | Content-Length: 78
|
| 62 | Expect: 100-continue
|
| 63 |
|
| 64 | Weird |
| 65 | file |
| 66 | to |
| 67 | upload |
| 68 | for |
| 69 | testing |
| 70 | the |
| 71 | PUT |
| 72 | feature |
| 73 | </protocol> |
| 74 | </verify> |
| 75 | </testcase> |