2
0

test1509 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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: Tue, 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: Tue, 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. lib%TESTNUMBER
  48. </tool>
  49. <features>
  50. proxy
  51. </features>
  52. <name>
  53. simple multi http:// through proxytunnel with authentication info
  54. </name>
  55. <command>
  56. http://the.old.moo.%TESTNUMBER:%HTTPPORT/%TESTNUMBER %HOSTIP:%PROXYPORT
  57. </command>
  58. <file name="%LOGDIR/test%TESTNUMBER.txt">
  59. foo
  60. bar
  61. bar
  62. foo
  63. moo
  64. </file>
  65. </client>
  66. # Verify data after the test has been "shot"
  67. <verify>
  68. <proxy>
  69. CONNECT the.old.moo.%TESTNUMBER:%HTTPPORT HTTP/1.1
  70. Host: the.old.moo.%TESTNUMBER:%HTTPPORT
  71. Proxy-Connection: Keep-Alive
  72. [DISCONNECT]
  73. </proxy>
  74. <protocol>
  75. GET /%TESTNUMBER HTTP/1.1
  76. Host: the.old.moo.%TESTNUMBER:%HTTPPORT
  77. Accept: */*
  78. [DISCONNECT]
  79. </protocol>
  80. </verify>
  81. </testcase>