Return to test510 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 POST ! 6: chunked Transfer-Encoding ! 7: </keywords> ! 8: </info> ! 9: ! 10: # ! 11: # Server-side ! 12: <reply> ! 13: <data> ! 14: HTTP/1.1 200 OK ! 15: Date: Thu, 09 Nov 2010 14:49:00 GMT ! 16: Server: test-server/fake swsclose ! 17: Connection: close ! 18: Content-Type: text/html ! 19: ! 20: hello ! 21: </data> ! 22: </reply> ! 23: ! 24: # Client-side ! 25: <client> ! 26: <server> ! 27: http ! 28: </server> ! 29: # tool is what to use instead of 'curl' ! 30: <tool> ! 31: lib510 ! 32: </tool> ! 33: ! 34: <name> ! 35: send HTTP POST using read callback, using chunked transfer-encoding ! 36: </name> ! 37: <command> ! 38: http://%HOSTIP:%HTTPPORT/510 ! 39: </command> ! 40: </client> ! 41: ! 42: # ! 43: # Verify data after the test has been "shot" ! 44: <verify> ! 45: <protocol> ! 46: POST /510 HTTP/1.1 ! 47: Host: %HOSTIP:%HTTPPORT ! 48: Accept: */* ! 49: Transfer-Encoding: chunked ! 50: Content-Type: application/x-www-form-urlencoded ! 51: Expect: 100-continue ! 52: ! 53: 3 ! 54: one ! 55: 3 ! 56: two ! 57: 5 ! 58: three ! 59: 1d ! 60: and a final longer crap: four ! 61: 0 ! 62: ! 63: </protocol> ! 64: </verify> ! 65: </testcase>