test151 849 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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/151
  29. </command>
  30. </client>
  31. # Verify data after the test has been "shot"
  32. <verify>
  33. <strip>
  34. ^User-Agent: curl/.*
  35. </strip>
  36. <protocol>
  37. GET /151 HTTP/1.1
  38. User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
  39. Host: %HOSTIP:%HTTPPORT
  40. Accept: */*
  41. </protocol>
  42. </verify>
  43. </testcase>