test178 872 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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: Tue, 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. %if hyper
  21. %else
  22. HTTP/1.1 200 OK swsclose
  23. Date: Tue, 09 Nov 2010 14:49:00 GMT
  24. %endif
  25. </datacheck>
  26. </reply>
  27. #
  28. # Client-side
  29. <client>
  30. <server>
  31. http
  32. </server>
  33. <name>
  34. HTTP response with negative Content-Length
  35. </name>
  36. <command>
  37. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  38. </command>
  39. </client>
  40. #
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <protocol>
  44. GET /%TESTNUMBER HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. User-Agent: curl/%VERSION
  47. Accept: */*
  48. </protocol>
  49. # Hyper curl returns unsupported protocol
  50. # bullt-in curl returns weird_server_reply
  51. <errorcode>
  52. %if hyper
  53. 1
  54. %else
  55. 8
  56. %endif
  57. </errorcode>
  58. </verify>
  59. </testcase>