test174 997 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <data>
  11. HTTP/1.1 200 beng swsclose
  12. Server: Microsoft-IIS/6.0
  13. Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth
  14. Content-Type: text/html; charset=iso-8859-1
  15. Content-Length: 26
  16. This is not the real page
  17. </data>
  18. </reply>
  19. # Client-side
  20. <client>
  21. #
  22. <server>
  23. http
  24. </server>
  25. <name>
  26. HTTP POST --anyauth to server not requiring any auth at all
  27. </name>
  28. <command>
  29. http://%HOSTIP:%HTTPPORT/174 -u testuser:testpass --anyauth -d "junkelijunk"
  30. </command>
  31. </client>
  32. # Verify data after the test has been "shot"
  33. <verify>
  34. <strip>
  35. ^User-Agent:.*
  36. </strip>
  37. <protocol nonewline="yes">
  38. POST /174 HTTP/1.1
  39. 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
  40. Host: %HOSTIP:%HTTPPORT
  41. Accept: */*
  42. Content-Length: 11
  43. Content-Type: application/x-www-form-urlencoded
  44. junkelijunk
  45. </protocol>
  46. </verify>
  47. </testcase>