诸暨麻将添加redis
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

84 строки
1.8 KiB

  1. <testcase>
  2. # Based on tests 186 and 1053
  3. <info>
  4. <keywords>
  5. HTTP
  6. HTTP FORMPOST
  7. HTTP file upload
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Thu, 29 Jul 2008 14:49:00 GMT
  15. Server: test-server/fake
  16. Content-Length: 0
  17. Connection: close
  18. </data>
  19. </reply>
  20. # Client-side
  21. <client>
  22. <server>
  23. http
  24. </server>
  25. <name>
  26. HTTP RFC1867-type formposting - -F with three files, one with explicit type
  27. </name>
  28. <command>
  29. http://%HOSTIP:%HTTPPORT/we/want/1315 -F name=value -F 'file=@log/test1315.txt,log/test1315.txt;type=magic/content,log/test1315.txt'
  30. </command>
  31. # We create this file before the command is invoked!
  32. <file name="log/test1315.txt">
  33. dummy data
  34. </file>
  35. </client>
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <strip>
  39. (^User-Agent:.*|-----+\w+)
  40. </strip>
  41. <protocol>
  42. POST /we/want/1315 HTTP/1.1
  43. User-Agent: curl/7.18.2 (i686-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.7a ipv6 zlib/1.1.4
  44. Host: %HOSTIP:%HTTPPORT
  45. Accept: */*
  46. Content-Length: 795
  47. Expect: 100-continue
  48. Content-Type: multipart/form-data; boundary=----------------------------9ef8d6205763
  49. ------------------------------9ef8d6205763
  50. Content-Disposition: form-data; name="name"
  51. value
  52. ------------------------------9ef8d6205763
  53. Content-Disposition: form-data; name="file"
  54. Content-Type: multipart/mixed; boundary=----------------------------aaaaaaaaaaaa
  55. Content-Disposition: attachment; filename="test1315.txt"
  56. Content-Type: text/plain
  57. dummy data
  58. ------------------------------9ef8d6205763
  59. Content-Disposition: attachment; filename="test1315.txt"
  60. Content-Type: magic/content
  61. dummy data
  62. ------------------------------9ef8d6205763
  63. Content-Disposition: attachment; filename="test1315.txt"
  64. Content-Type: text/plain
  65. dummy data
  66. ------------------------------aaaaaaaaaaaa--
  67. ------------------------------9ef8d6205763--
  68. </protocol>
  69. </verify>
  70. </testcase>