Return to test515 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: </keywords> ! 7: </info> ! 8: # ! 9: # Server-side ! 10: <reply> ! 11: <data> ! 12: HTTP/1.1 200 OK swsclose ! 13: Date: Thu, 09 Nov 2010 14:49:00 GMT ! 14: Server: test-server/fake ! 15: Content-Length: 3 ! 16: ! 17: OK ! 18: </data> ! 19: </reply> ! 20: ! 21: # Client-side ! 22: <client> ! 23: <server> ! 24: http ! 25: </server> ! 26: # tool is what to use instead of 'curl' ! 27: <tool> ! 28: lib515 ! 29: </tool> ! 30: ! 31: <name> ! 32: make a POSTFIELDS set to NULL with POSTFIELDSIZE set to zero ! 33: </name> ! 34: <command> ! 35: http://%HOSTIP:%HTTPPORT/515 ! 36: </command> ! 37: </client> ! 38: ! 39: # ! 40: # Verify data after the test has been "shot" ! 41: <verify> ! 42: <strip> ! 43: ^User-Agent:.* ! 44: </strip> ! 45: <protocol> ! 46: POST /515 HTTP/1.1 ! 47: Host: %HOSTIP:%HTTPPORT ! 48: Accept: */* ! 49: Content-Length: 0 ! 50: Content-Type: application/x-www-form-urlencoded ! 51: ! 52: </protocol> ! 53: </verify> ! 54: </testcase>