test75 798 B

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