test152 856 B

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