test1509 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP CONNECT
  7. HTTP proxy
  8. proxytunnel
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <servercmd>
  14. connection-monitor
  15. </servercmd>
  16. <connect>
  17. HTTP/1.1 200 Mighty fine indeed
  18. Server: the beast that eats naughty clients
  19. </connect>
  20. <data>
  21. HTTP/1.1 200 OK swsclose
  22. Date: Thu, 09 Nov 2010 14:49:00 GMT
  23. Server: test-server/fake
  24. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  25. ETag: "21025-dc7-39462498"
  26. </data>
  27. <datacheck>
  28. HTTP/1.1 200 Mighty fine indeed
  29. Server: the beast that eats naughty clients
  30. HTTP/1.1 200 OK swsclose
  31. Date: Thu, 09 Nov 2010 14:49:00 GMT
  32. Server: test-server/fake
  33. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  34. ETag: "21025-dc7-39462498"
  35. header length is ........: 245
  36. header length should be..: 245
  37. </datacheck>
  38. </reply>
  39. # Client-side
  40. <client>
  41. <server>
  42. http
  43. http-proxy
  44. </server>
  45. # tool is what to use instead of 'curl'
  46. <tool>
  47. lib1509
  48. </tool>
  49. <name>
  50. simple multi http:// through proxytunnel with authentication info
  51. </name>
  52. <command>
  53. http://the.old.moo.1509:%HTTPPORT/1509 %HOSTIP:%PROXYPORT
  54. </command>
  55. <file name="log/test1509.txt">
  56. foo
  57. bar
  58. bar
  59. foo
  60. moo
  61. </file>
  62. </client>
  63. # Verify data after the test has been "shot"
  64. <verify>
  65. <proxy>
  66. CONNECT the.old.moo.1509:%HTTPPORT HTTP/1.1
  67. Host: the.old.moo.1509:%HTTPPORT
  68. Proxy-Connection: Keep-Alive
  69. </proxy>
  70. <protocol>
  71. GET /1509 HTTP/1.1
  72. Host: the.old.moo.1509:%HTTPPORT
  73. Accept: */*
  74. [DISCONNECT]
  75. </protocol>
  76. </verify>
  77. </testcase>