诸暨麻将添加redis
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

64 rivejä
1.4 KiB

  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <data>
  11. HTTP/1.1 200 OK swsclose
  12. Date: Thu, 09 Nov 2010 14:49:00 GMT
  13. Server: test-server/fake
  14. Content-Length: 11
  15. blablabla
  16. </data>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <server>
  21. http
  22. </server>
  23. <name>
  24. HTTP RFC1867-type formposting with types on text fields
  25. </name>
  26. <command>
  27. http://%HOSTIP:%HTTPPORT/we/want/186 -F "name=daniel;type=moo/foo" -F "html= <body>hello</body>;type=text/html;charset=verymoo"
  28. </command>
  29. # We create this file before the command is invoked!
  30. </client>
  31. # Verify data after the test has been "shot"
  32. <verify>
  33. <strip>
  34. ^(User-Agent:|Content-Type: multipart/form-data;|------------).*
  35. </strip>
  36. <protocol>
  37. POST /we/want/186 HTTP/1.1
  38. User-Agent: curl/7.12.2-CVS (i686-pc-linux-gnu) libcurl/7.12.2-CVS OpenSSL/0.9.7d zlib/1.2.1.1 c-ares/1.2.0 libidn/0.5.2
  39. Host: %HOSTIP:%HTTPPORT
  40. Accept: */*
  41. Content-Length: 321
  42. Expect: 100-continue
  43. Content-Type: multipart/form-data; boundary=----------------------------212d9006ceb5
  44. ------------------------------212d9006ceb5
  45. Content-Disposition: form-data; name="name"
  46. Content-Type: moo/foo
  47. daniel
  48. ------------------------------212d9006ceb5
  49. Content-Disposition: form-data; name="html"
  50. Content-Type: text/html;charset=verymoo
  51. <body>hello</body>
  52. ------------------------------212d9006ceb5--
  53. </protocol>
  54. </verify>
  55. </testcase>