2
0

test430 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <testcase>
  2. # Derived from on https://github.com/curl/curl/issues/5120
  3. <info>
  4. <keywords>
  5. --next
  6. --config
  7. POST
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data1>
  14. HTTP/1.1 200 OK
  15. Content-Length: 6
  16. Content-Type: text/1
  17. -foo-
  18. </data1>
  19. <data2>
  20. HTTP/1.1 200 OK
  21. Content-Length: 6
  22. Content-Type: text/2
  23. -foo-
  24. </data2>
  25. <data3>
  26. HTTP/1.1 200 OK
  27. Content-Length: 6
  28. Content-Type: text/3
  29. -foo-
  30. </data3>
  31. </reply>
  32. #
  33. # Client-side
  34. <client>
  35. <file1 name="log/config%TESTNUMBER-a">
  36. --next
  37. url = %HOSTIP:%HTTPPORT/%TESTNUMBER0001
  38. header = "a: a"
  39. data = "a"
  40. </file1>
  41. <file2 name="log/config%TESTNUMBER-b">
  42. --next
  43. url = %HOSTIP:%HTTPPORT/%TESTNUMBER0002
  44. header = "b: b"
  45. data = "b"
  46. </file2>
  47. <file3 name="log/config%TESTNUMBER-c">
  48. --next
  49. url = %HOSTIP:%HTTPPORT/%TESTNUMBER0003
  50. header = "c: c"
  51. data = "c"
  52. </file3>
  53. <server>
  54. http
  55. </server>
  56. <name>
  57. Three -K uses with --next and --data in each
  58. </name>
  59. <command>
  60. -K log/config%TESTNUMBER-a -K log/config%TESTNUMBER-b -K log/config%TESTNUMBER-c
  61. </command>
  62. </client>
  63. #
  64. # Verify data after the test has been "shot"
  65. <verify>
  66. <protocol nonewline="yes">
  67. POST /%TESTNUMBER0001 HTTP/1.1
  68. Host: %HOSTIP:%HTTPPORT
  69. User-Agent: curl/%VERSION
  70. Accept: */*
  71. a: a
  72. Content-Length: 1
  73. Content-Type: application/x-www-form-urlencoded
  74. aPOST /%TESTNUMBER0002 HTTP/1.1
  75. Host: %HOSTIP:%HTTPPORT
  76. User-Agent: curl/%VERSION
  77. Accept: */*
  78. b: b
  79. Content-Length: 1
  80. Content-Type: application/x-www-form-urlencoded
  81. bPOST /%TESTNUMBER0003 HTTP/1.1
  82. Host: %HOSTIP:%HTTPPORT
  83. User-Agent: curl/%VERSION
  84. Accept: */*
  85. c: c
  86. Content-Length: 1
  87. Content-Type: application/x-www-form-urlencoded
  88. c
  89. </protocol>
  90. </verify>
  91. </testcase>