诸暨麻将添加redis
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

65 řádky
844 B

  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <data mode="text">
  12. HTTP/1.1 200 OK
  13. Date: Thu, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake swsclose
  15. Connection: close
  16. Content-Type: text/html
  17. hello
  18. </data>
  19. </reply>
  20. # Client-side
  21. <client>
  22. <server>
  23. http
  24. </server>
  25. # tool is what to use instead of 'curl'
  26. <tool>
  27. lib510
  28. </tool>
  29. <name>
  30. send HTTP POST using read callback, using chunked transfer-encoding
  31. </name>
  32. <command>
  33. http://%HOSTIP:%HTTPPORT/510
  34. </command>
  35. </client>
  36. #
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <protocol>
  40. POST /510 HTTP/1.1
  41. Host: %HOSTIP:%HTTPPORT
  42. Accept: */*
  43. Transfer-Encoding: chunked
  44. Content-Type: application/x-www-form-urlencoded
  45. Expect: 100-continue
  46. 3
  47. one
  48. 3
  49. two
  50. 5
  51. three
  52. 1d
  53. and a final longer crap: four
  54. 0
  55. </protocol>
  56. </verify>
  57. </testcase>