test174 878 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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/%TESTNUMBER -u testuser:testpass --anyauth -d "junkelijunk"
  30. </command>
  31. </client>
  32. # Verify data after the test has been "shot"
  33. <verify>
  34. <protocol nonewline="yes">
  35. POST /%TESTNUMBER HTTP/1.1
  36. Host: %HOSTIP:%HTTPPORT
  37. User-Agent: curl/%VERSION
  38. Accept: */*
  39. Content-Length: 11
  40. Content-Type: application/x-www-form-urlencoded
  41. junkelijunk
  42. </protocol>
  43. </verify>
  44. </testcase>