test56 940 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. chunked Transfer-Encoding
  7. config file
  8. -A
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <data>
  14. HTTP/1.0 200 OK swsclose
  15. Funny-head: yesyes
  16. This is the proof it works
  17. </data>
  18. </reply>
  19. # Client-side
  20. <client>
  21. <server>
  22. http
  23. </server>
  24. <name>
  25. HTTP POST with *HUGE* request and chunked transfer-encoding
  26. </name>
  27. <stdin>
  28. #
  29. data "we post this"
  30. #
  31. # enforce chunky post!
  32. header "Transfer-Encoding: chunked"
  33. #
  34. # Set the user-agent using a short-option:
  35. -A "%repeat[99999 x a]%"
  36. #
  37. </stdin>
  38. <command>
  39. -K - %HOSTIP:%HTTPPORT/that.site.com/%TESTNUMBER
  40. </command>
  41. </client>
  42. # Verify data after the test has been "shot"
  43. <verify>
  44. <protocol>
  45. POST /that.site.com/%TESTNUMBER HTTP/1.1
  46. Host: %HOSTIP:%HTTPPORT
  47. User-Agent: %repeat[99999 x a]%
  48. Accept: */*
  49. Transfer-Encoding: chunked
  50. Content-Type: application/x-www-form-urlencoded
  51. %if hyper
  52. C
  53. %else
  54. c
  55. %endif
  56. we post this
  57. 0
  58. </protocol>
  59. </verify>
  60. </testcase>