test1421 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. Unknown-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.%TESTNUMBER:8990/ http://different.remote.haxx.se.%TESTNUMBER:8990
  33. </command>
  34. <features>
  35. proxy
  36. </features>
  37. </client>
  38. #
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <stdout>
  42. HTTP/1.1 200 OK
  43. Unknown-header: blrub
  44. Content-Length: 6
  45. -foo-
  46. HTTP/1.1 200 OK
  47. Unknown-header: blrub
  48. Content-Length: 6
  49. -foo-
  50. </stdout>
  51. <protocol>
  52. GET http://test.remote.haxx.se.%TESTNUMBER:8990/ HTTP/1.1
  53. Host: test.remote.haxx.se.%TESTNUMBER:8990
  54. User-Agent: curl/%VERSION
  55. Accept: */*
  56. Proxy-Connection: Keep-Alive
  57. GET http://different.remote.haxx.se.%TESTNUMBER:8990/ HTTP/1.1
  58. Host: different.remote.haxx.se.%TESTNUMBER:8990
  59. User-Agent: curl/%VERSION
  60. Accept: */*
  61. Proxy-Connection: Keep-Alive
  62. [DISCONNECT]
  63. </protocol>
  64. </verify>
  65. </testcase>