test24 866 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <data nocheck="yes">
  11. HTTP/1.0 404 BAD BOY
  12. Content-Type: text/html
  13. This silly page doesn't reaaaaaly exist so you should not get it.
  14. </data>
  15. </reply>
  16. # Client-side
  17. <client>
  18. <server>
  19. http
  20. </server>
  21. <name>
  22. HTTP GET fail silently on HTTP error return
  23. </name>
  24. <command>
  25. http://%HOSTIP:%HTTPPORT/24 --fail --silent --show-error
  26. </command>
  27. </client>
  28. # Verify data after the test has been "shot"
  29. <verify>
  30. <strip>
  31. ^User-Agent: curl/.*
  32. </strip>
  33. <protocol>
  34. GET /24 HTTP/1.1
  35. User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
  36. Host: %HOSTIP:%HTTPPORT
  37. Accept: */*
  38. </protocol>
  39. <errorcode>
  40. 22
  41. </errorcode>
  42. <file2 name="log/stderr24" mode="text">
  43. curl: (22) The requested URL returned error: 404 BAD BOY
  44. </file2>
  45. </verify>
  46. </testcase>