Return to test174 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 beng swsclose ! 13: Server: Microsoft-IIS/6.0 ! 14: Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth ! 15: Content-Type: text/html; charset=iso-8859-1 ! 16: Content-Length: 26 ! 17: ! 18: This is not the real page ! 19: </data> ! 20: </reply> ! 21: ! 22: # Client-side ! 23: <client> ! 24: # ! 25: <server> ! 26: http ! 27: </server> ! 28: <name> ! 29: HTTP POST --anyauth to server not requiring any auth at all ! 30: </name> ! 31: <command> ! 32: http://%HOSTIP:%HTTPPORT/174 -u testuser:testpass --anyauth -d "junkelijunk" ! 33: </command> ! 34: </client> ! 35: ! 36: # Verify data after the test has been "shot" ! 37: <verify> ! 38: <strip> ! 39: ^User-Agent:.* ! 40: </strip> ! 41: <protocol nonewline="yes"> ! 42: POST /174 HTTP/1.1 ! 43: User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6 ! 44: Host: %HOSTIP:%HTTPPORT ! 45: Accept: */* ! 46: Content-Length: 11 ! 47: Content-Type: application/x-www-form-urlencoded ! 48: ! 49: junkelijunk ! 50: </protocol> ! 51: </verify> ! 52: </testcase>