test503 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Server-side
  2. <reply>
  3. <data>
  4. HTTP/1.1 200 OK swsclose
  5. Date: Thu, 09 Nov 2010 14:49:00 GMT
  6. Server: test-server/fake
  7. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  8. ETag: "21025-dc7-39462498"
  9. </data>
  10. <datacheck>
  11. HTTP/1.1 200 Mighty fine indeed
  12. HTTP/1.1 200 OK swsclose
  13. Date: Thu, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  16. ETag: "21025-dc7-39462498"
  17. </datacheck>
  18. </reply>
  19. # Client-side
  20. <client>
  21. <server>
  22. http
  23. </server>
  24. # tool is what to use instead of 'curl'
  25. <tool>
  26. lib503
  27. </tool>
  28. <name>
  29. simple multi http:// through proxytunnel with authentication info
  30. </name>
  31. <command>
  32. http://%HOSTIP:%HTTPSPORT/503 localhost:%HOSTPORT
  33. </command>
  34. <file name="log/test503.txt">
  35. foo
  36. bar
  37. bar
  38. foo
  39. moo
  40. </file>
  41. </client>
  42. # Verify data after the test has been "shot"
  43. <verify>
  44. <protocol>
  45. CONNECT 127.0.0.1:8433 HTTP/1.0
  46. Proxy-authorization: Basic dGVzdDppbmc=
  47. GET /503 HTTP/1.1
  48. Authorization: Basic dGVzdDppbmc=
  49. Host: 127.0.0.1:8433
  50. Pragma: no-cache
  51. Accept: */*
  52. </protocol>
  53. </verify>