test157 736 B

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