test1528 957 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. <connect>
  14. HTTP/1.1 200 OK
  15. We-are: good
  16. </connect>
  17. <data>
  18. HTTP/1.1 200 OK swsclose
  19. Date: Tue, 09 Nov 2010 14:49:00 GMT
  20. Server: test-server/fake
  21. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  22. ETag: "21025-dc7-39462498"
  23. Content-Length: 5
  24. stop
  25. </data>
  26. </reply>
  27. # Client-side
  28. <client>
  29. <server>
  30. http
  31. http-proxy
  32. </server>
  33. <tool>
  34. lib%TESTNUMBER
  35. </tool>
  36. <name>
  37. Separately specified proxy/server headers sent in a proxy GET
  38. </name>
  39. <command>
  40. http://the.old.moo:%HTTPPORT/%TESTNUMBER %HOSTIP:%PROXYPORT
  41. </command>
  42. <features>
  43. proxy
  44. </features>
  45. </client>
  46. # Verify data after the test has been "shot"
  47. <verify>
  48. <proxy>
  49. GET http://the.old.moo:%HTTPPORT/%TESTNUMBER HTTP/1.1
  50. Host: the.old.moo:%HTTPPORT
  51. Accept: */*
  52. Proxy-Connection: Keep-Alive
  53. User-Agent: Http Agent
  54. Proxy-User-Agent: Http Agent2
  55. </proxy>
  56. </verify>
  57. </testcase>