test262 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <data base64="yes" nocheck="yes">
  12. SFRUUC8xLjEgMjAwIE9LAApEYXRlOiBUdWUsIDA5IE5vdiAyMDEwIDE0OjQ5OjAwIEdNVAAKU2Vy
  13. dmVyOiB0ZXN0LXNlcnZlci9mYWtlAApMYXN0LU1vZGlmaWVkOiBUdWUsIDEzIEp1biAyMDAwIDEy
  14. OjEwOjAwIEdNVAAKRVRhZzogIjIxMDI1LWRjNy0zOTQ2MjQ5OCIACkFjY2VwdC1SYW5nZXM6IGJ5
  15. dGVzAApDb250ZW50LUxlbmd0aDogNgAKQ29ubmVjdGlvbjogY2xvc2UACkNvbnRlbnQtVHlwZTog
  16. dGV4dC9odG1sAApGdW5ueS1oZWFkOiB5ZXN5ZXMACgpoZWxsbwo=
  17. </data>
  18. <actual-data>
  19. HTTP/1.1 200 OK�
  20. Date: Tue, 09 Nov 2010 14:49:00 GMT�
  21. Server: test-server/fake�
  22. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT�
  23. ETag: "21025-dc7-39462498"�
  24. Accept-Ranges: bytes�
  25. Content-Length: 6�
  26. Connection: close�
  27. Content-Type: text/html�
  28. Funny-head: yesyes�
  29. hello
  30. </actual-data>
  31. </reply>
  32. #
  33. # Client-side
  34. <client>
  35. <server>
  36. http
  37. </server>
  38. <name>
  39. Reject HTTP response with binary zero in header
  40. </name>
  41. <command>
  42. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  43. </command>
  44. </client>
  45. #
  46. # Verify data after the test has been "shot"
  47. <verify>
  48. <protocol>
  49. GET /%TESTNUMBER HTTP/1.1
  50. Host: %HOSTIP:%HTTPPORT
  51. User-Agent: curl/%VERSION
  52. Accept: */*
  53. </protocol>
  54. <errorcode>
  55. %if hyper
  56. 1
  57. %else
  58. 8
  59. %endif
  60. </errorcode>
  61. </verify>
  62. </testcase>