test1948 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. HTTP PUT
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 OK
  13. Date: Thu, 01 Nov 2001 14:49:00 GMT
  14. Content-Type: text/html
  15. Content-Length: 6
  16. hello
  17. </data>
  18. <datacheck>
  19. HTTP/1.1 200 OK
  20. Date: Thu, 01 Nov 2001 14:49:00 GMT
  21. Content-Type: text/html
  22. Content-Length: 6
  23. hello
  24. HTTP/1.1 200 OK
  25. Date: Thu, 01 Nov 2001 14:49:00 GMT
  26. Content-Type: text/html
  27. Content-Length: 6
  28. hello
  29. </datacheck>
  30. </reply>
  31. # Client-side
  32. <client>
  33. <server>
  34. http
  35. </server>
  36. <name>
  37. CURLOPT_POST after CURLOPT_UPLOAD reusing handle
  38. </name>
  39. <tool>
  40. lib%TESTNUMBER
  41. </tool>
  42. <command>
  43. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  44. </command>
  45. </client>
  46. # Verify data after the test has been "shot"
  47. <verify>
  48. <protocol>
  49. PUT /%TESTNUMBER HTTP/1.1
  50. Host: %HOSTIP:%HTTPPORT
  51. Accept: */*
  52. Content-Length: 22
  53. This is test PUT data
  54. POST /1948 HTTP/1.1
  55. Host: %HOSTIP:%HTTPPORT
  56. Accept: */*
  57. Content-Length: 22
  58. Content-Type: application/x-www-form-urlencoded
  59. This is test PUT data
  60. </protocol>
  61. </verify>
  62. </testcase>