2
0

test503 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. <data>
  16. HTTP/1.1 200 OK swsclose
  17. Date: Thu, 09 Nov 2010 14:49:00 GMT
  18. Server: test-server/fake
  19. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  20. ETag: "21025-dc7-39462498"
  21. </data>
  22. <datacheck>
  23. HTTP/1.1 200 Mighty fine indeed
  24. HTTP/1.1 200 OK swsclose
  25. Date: Thu, 09 Nov 2010 14:49:00 GMT
  26. Server: test-server/fake
  27. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  28. ETag: "21025-dc7-39462498"
  29. </datacheck>
  30. </reply>
  31. # Client-side
  32. <client>
  33. <server>
  34. http
  35. </server>
  36. # tool is what to use instead of 'curl'
  37. <tool>
  38. lib503
  39. </tool>
  40. <name>
  41. simple multi http:// through proxytunnel with authentication info
  42. </name>
  43. <command>
  44. http://%HOSTIP:%HTTPSPORT/503 %HOSTIP:%HTTPPORT
  45. </command>
  46. <file name="log/test503.txt">
  47. foo
  48. bar
  49. bar
  50. foo
  51. moo
  52. </file>
  53. </client>
  54. # Verify data after the test has been "shot"
  55. <verify>
  56. <protocol>
  57. CONNECT %HOSTIP:%HTTPSPORT HTTP/1.1
  58. Host: %HOSTIP:%HTTPSPORT
  59. Proxy-Authorization: Basic dGVzdDppbmc=
  60. Proxy-Connection: Keep-Alive
  61. GET /503 HTTP/1.1
  62. Authorization: Basic dGVzdDppbmc=
  63. Host: %HOSTIP:%HTTPSPORT
  64. Accept: */*
  65. </protocol>
  66. </verify>
  67. </testcase>