test157 673 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <testcase>
  2. # Server-side
  3. <reply>
  4. <data>
  5. HTTP/1.1 200 No Authorization Required swsclose
  6. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  7. Content-Type: text/html; charset=iso-8859-1
  8. Connection: close
  9. GET received and served just fine. Thank you very much
  10. </data>
  11. </reply>
  12. # Client-side
  13. <client>
  14. <server>
  15. http
  16. </server>
  17. <name>
  18. HTTP GET with --anyauth (when the server requires none)
  19. </name>
  20. <command>
  21. http://%HOSTIP:%HTTPPORT/157 -u testuser:testpass --anyauth
  22. </command>
  23. </client>
  24. # Verify data after the test has been "shot"
  25. <verify>
  26. <strip>
  27. ^User-Agent:.*
  28. </strip>
  29. <protocol>
  30. GET /157 HTTP/1.1
  31. Host: %HOSTIP:%HTTPPORT
  32. Accept: */*
  33. </protocol>
  34. </verify>
  35. </testcase>