test553 1018 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. POST callback
  7. huge request header
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 Fine!
  14. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  15. Content-Length: 6
  16. hello
  17. </data>
  18. </reply>
  19. # Client-side
  20. <client>
  21. <server>
  22. http
  23. </server>
  24. # tool to use
  25. <tool>
  26. lib%TESTNUMBER
  27. </tool>
  28. <features>
  29. </features>
  30. <name>
  31. HTTP post with huge request headers and post data from callback
  32. </name>
  33. <command>
  34. http://%HOSTIP:%HTTPPORT/path/%TESTNUMBER
  35. </command>
  36. </client>
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <protocol nonewline="yes">
  40. POST /path/%TESTNUMBER HTTP/1.1
  41. Host: %HOSTIP:%HTTPPORT
  42. Accept: */*
  43. Header0: %repeat[5000 x A]%
  44. Header1: %repeat[5000 x A]%
  45. Header2: %repeat[5000 x A]%
  46. Header3: %repeat[5000 x A]%
  47. Header4: %repeat[5000 x A]%
  48. Header5: %repeat[5000 x A]%
  49. Header6: %repeat[5000 x A]%
  50. Header7: %repeat[5000 x A]%
  51. Content-Length: 40960
  52. Content-Type: application/x-www-form-urlencoded
  53. %repeat[40960 x A]%
  54. </protocol>
  55. </verify>
  56. </testcase>