test1528 906 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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: Thu, 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. lib1528
  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/1528 %HOSTIP:%PROXYPORT
  41. </command>
  42. </client>
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. <proxy>
  46. GET http://the.old.moo:%HTTPPORT/1528 HTTP/1.1
  47. Host: the.old.moo:%HTTPPORT
  48. Accept: */*
  49. Proxy-Connection: Keep-Alive
  50. User-Agent: Http Agent
  51. Proxy-User-Agent: Http Agent2
  52. </proxy>
  53. </verify>
  54. </testcase>