test156 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP PUT
  6. --anyauth
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 No Authorization Required swsclose
  13. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  14. Content-Type: text/html; charset=iso-8859-1
  15. Connection: close
  16. PUT received fine. Thank you very much
  17. </data>
  18. </reply>
  19. # Client-side
  20. <client>
  21. <server>
  22. http
  23. </server>
  24. <name>
  25. HTTP PUT with --anyauth (when the server requires none)
  26. </name>
  27. <command>
  28. http://%HOSTIP:%HTTPPORT/156 -T log/put156 -u testuser:testpass --anyauth
  29. </command>
  30. <file name="log/put156">
  31. This is data we upload with PUT
  32. a second line
  33. line three
  34. four is the number of lines
  35. </file>
  36. </client>
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <strip>
  40. ^User-Agent:.*
  41. </strip>
  42. <protocol>
  43. PUT /156 HTTP/1.1
  44. User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3
  45. Host: %HOSTIP:%HTTPPORT
  46. Accept: */*
  47. Content-Length: 85
  48. Expect: 100-continue
  49. This is data we upload with PUT
  50. a second line
  51. line three
  52. four is the number of lines
  53. </protocol>
  54. </verify>
  55. </testcase>