test393 925 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. --max-filesize
  7. FAILURE
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data nocheck="yes">
  14. HTTP/1.1 200 OK swsclose
  15. Date: Tue, 09 Nov 2010 14:49:00 GMT
  16. Server: test-server/fake
  17. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  18. ETag: "21025-dc7-39462498"
  19. Accept-Ranges: bytes
  20. %if hyper
  21. Content-Length: 3689348814741910323
  22. %else
  23. Content-Length: 36893488147419103232
  24. %endif
  25. Connection: close
  26. Content-Type: text/html
  27. Funny-head: yesyes
  28. -foo-
  29. </data>
  30. </reply>
  31. #
  32. # Client-side
  33. <client>
  34. <server>
  35. http
  36. </server>
  37. <name>
  38. HTTP max-filesize and out-of-range Content-Length
  39. </name>
  40. <command>
  41. http://%HOSTIP:%HTTPPORT/%TESTNUMBER --max-filesize 2000000
  42. </command>
  43. </client>
  44. #
  45. # Verify data after the test has been "shot"
  46. <verify>
  47. <errorcode>
  48. 63
  49. </errorcode>
  50. <protocol>
  51. GET /%TESTNUMBER HTTP/1.1
  52. Host: %HOSTIP:%HTTPPORT
  53. User-Agent: curl/%VERSION
  54. Accept: */*
  55. </protocol>
  56. </verify>
  57. </testcase>