test361 803 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. --fail-with-body
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.0 404 BAD BOY swsclose
  13. Content-Type: text/html
  14. This silly page doesn't reaaaaaly exist so you should not get it.
  15. </data>
  16. </reply>
  17. # Client-side
  18. <client>
  19. <server>
  20. http
  21. </server>
  22. <name>
  23. HTTP GET --fail-with-body on HTTP error return - twice
  24. </name>
  25. <command>
  26. http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER --fail-with-body
  27. </command>
  28. </client>
  29. # Verify data after the test has been "shot"
  30. <verify>
  31. <protocol>
  32. GET /%TESTNUMBER HTTP/1.1
  33. Host: %HOSTIP:%HTTPPORT
  34. User-Agent: curl/%VERSION
  35. Accept: */*
  36. GET /%TESTNUMBER HTTP/1.1
  37. Host: %HOSTIP:%HTTPPORT
  38. User-Agent: curl/%VERSION
  39. Accept: */*
  40. </protocol>
  41. <errorcode>
  42. 22
  43. </errorcode>
  44. </verify>
  45. </testcase>