test1421 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data nocheck="yes">
  13. HTTP/1.1 200 OK
  14. Uknown-header: blrub
  15. Content-Length: 6
  16. -foo-
  17. </data>
  18. <servercmd>
  19. connection-monitor
  20. </servercmd>
  21. </reply>
  22. #
  23. # Client-side
  24. <client>
  25. <server>
  26. http
  27. </server>
  28. <name>
  29. Re-using HTTP proxy connection for two different host names
  30. </name>
  31. <command>
  32. --proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.1421:8990/ http://different.remote.haxx.se.1421:8990
  33. </command>
  34. </client>
  35. #
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <stdout>
  39. HTTP/1.1 200 OK
  40. Uknown-header: blrub
  41. Content-Length: 6
  42. -foo-
  43. HTTP/1.1 200 OK
  44. Uknown-header: blrub
  45. Content-Length: 6
  46. -foo-
  47. </stdout>
  48. <strip>
  49. ^User-Agent:.*
  50. </strip>
  51. <protocol>
  52. GET http://test.remote.haxx.se.1421:8990/ HTTP/1.1
  53. Host: test.remote.haxx.se.1421:8990
  54. Accept: */*
  55. Proxy-Connection: Keep-Alive
  56. GET http://different.remote.haxx.se.1421:8990/ HTTP/1.1
  57. Host: different.remote.haxx.se.1421:8990
  58. Accept: */*
  59. Proxy-Connection: Keep-Alive
  60. [DISCONNECT]
  61. </protocol>
  62. </verify>
  63. </testcase>