test503 1.3 KB

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