test151 746 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <data>
  11. HTTP/1.0 401 BAD BOY
  12. Server: swsclose
  13. Content-Type: text/html
  14. This contains a response code >= 400, so curl shouldn't display this. Even
  15. though it's a response code that triggers authentication, we're not using
  16. authentication so we should still fail.
  17. </data>
  18. </reply>
  19. # Client-side
  20. <client>
  21. <server>
  22. http
  23. </server>
  24. <name>
  25. HTTP GET with an error code that might trick authentication
  26. </name>
  27. <command>
  28. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  29. </command>
  30. </client>
  31. # Verify data after the test has been "shot"
  32. <verify>
  33. <protocol>
  34. GET /%TESTNUMBER HTTP/1.1
  35. Host: %HOSTIP:%HTTPPORT
  36. User-Agent: curl/%VERSION
  37. Accept: */*
  38. </protocol>
  39. </verify>
  40. </testcase>