test178 727 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 OK swsclose
  13. Date: Thu, 09 Nov 2010 14:49:00 GMT
  14. Content-Length: -6
  15. Content-Type: text/html
  16. Funny-head: yesyes
  17. moooooooooooo
  18. </data>
  19. <datacheck>
  20. HTTP/1.1 200 OK swsclose
  21. Date: Thu, 09 Nov 2010 14:49:00 GMT
  22. </datacheck>
  23. </reply>
  24. #
  25. # Client-side
  26. <client>
  27. <server>
  28. http
  29. </server>
  30. <name>
  31. HTTP response with negative Content-Length
  32. </name>
  33. <command>
  34. http://%HOSTIP:%HTTPPORT/178
  35. </command>
  36. </client>
  37. #
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <strip>
  41. ^User-Agent:.*
  42. </strip>
  43. <protocol>
  44. GET /178 HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. Accept: */*
  47. </protocol>
  48. <errorcode>
  49. 8
  50. </errorcode>
  51. </verify>
  52. </testcase>