test75 794 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. FAILURE
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. </reply>
  13. #
  14. # Client-side
  15. <client>
  16. <server>
  17. none
  18. </server>
  19. <features>
  20. http
  21. </features>
  22. <name>
  23. HTTP, urlglob retrieval with bad range
  24. </name>
  25. <command option="no-output">
  26. "http://%HOSTIP:%HTTPPORT/[2-1]" -o "log/weee#1.dump" --stderr -
  27. </command>
  28. # The error message on stdout implicitly depends on the length of the
  29. # URL, so refuse to run if the length is unexpected.
  30. <precheck>
  31. perl %SRCDIR/libtest/test75.pl http://%HOSTIP:%HTTPPORT/ 22
  32. </precheck>
  33. </client>
  34. #
  35. # Verify data after the test has been "shot"
  36. <verify>
  37. <strip>
  38. ^User-Agent:.*
  39. </strip>
  40. <errorcode>
  41. 3
  42. </errorcode>
  43. <stdout mode="text">
  44. curl: (3) [globbing] error: bad range specification after pos 24
  45. </stdout>
  46. </verify>
  47. </testcase>