Return to test1028 CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data |
1.1 ! misho 1: <testcase> ! 2: <info> ! 3: <keywords> ! 4: HTTP ! 5: HTTP GET ! 6: followlocation ! 7: FTP ! 8: PASV ! 9: FILE ! 10: </keywords> ! 11: </info> ! 12: ! 13: # ! 14: # Server-side ! 15: <reply> ! 16: <data1> ! 17: HTTP/1.1 302 OK ! 18: Date: Thu, 09 Nov 2010 14:49:00 GMT ! 19: Server: test-server/fake swsclose ! 20: Content-Type: text/html ! 21: Funny-head: yesyes ! 22: Location: ftp://%HOSTIP:%FTPPORT/10280002 ! 23: Content-Length: 0 ! 24: Connection: close ! 25: ! 26: </data1> ! 27: <data2> ! 28: data ! 29: to ! 30: see ! 31: that FTP ! 32: works ! 33: so does it? ! 34: </data2> ! 35: </reply> ! 36: ! 37: # ! 38: # Client-side ! 39: <client> ! 40: <server> ! 41: http ! 42: ftp ! 43: </server> ! 44: <name> ! 45: HTTP Location: redirect to FTP URL ! 46: </name> ! 47: <command> ! 48: http://%HOSTIP:%HTTPPORT/10280001 -L ! 49: </command> ! 50: </client> ! 51: ! 52: # ! 53: # Verify data after the test has been "shot" ! 54: <verify> ! 55: <strip> ! 56: ^User-Agent:.* ! 57: </strip> ! 58: <protocol> ! 59: GET /10280001 HTTP/1.1 ! 60: Host: %HOSTIP:%HTTPPORT ! 61: Accept: */* ! 62: ! 63: USER anonymous ! 64: PASS ftp@example.com ! 65: PWD ! 66: EPSV ! 67: TYPE I ! 68: SIZE 10280002 ! 69: RETR 10280002 ! 70: QUIT ! 71: </protocol> ! 72: <stdout> ! 73: HTTP/1.1 302 OK ! 74: Date: Thu, 09 Nov 2010 14:49:00 GMT ! 75: Server: test-server/fake swsclose ! 76: Content-Type: text/html ! 77: Funny-head: yesyes ! 78: Location: ftp://%HOSTIP:%FTPPORT/10280002 ! 79: Content-Length: 0 ! 80: Connection: close ! 81: ! 82: data ! 83: to ! 84: see ! 85: that FTP ! 86: works ! 87: so does it? ! 88: </stdout> ! 89: </verify> ! 90: </testcase>