test183 950 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. persistent connection
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Tue, 09 Nov 2010 14:49:00 GMT
  15. Content-Length: 4
  16. moo
  17. </data>
  18. </reply>
  19. # Client-side
  20. <client>
  21. <server>
  22. http
  23. </server>
  24. <name>
  25. HTTP GET two URLs over a single proxy with persistent connection
  26. </name>
  27. <command>
  28. http://deathstar.another.galaxy/%TESTNUMBER http://a.galaxy.far.far.away/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT
  29. </command>
  30. <features>
  31. proxy
  32. </features>
  33. </client>
  34. # Verify data after the test has been "shot"
  35. <verify>
  36. <protocol>
  37. GET http://deathstar.another.galaxy/%TESTNUMBER HTTP/1.1
  38. Host: deathstar.another.galaxy
  39. User-Agent: curl/%VERSION
  40. Accept: */*
  41. Proxy-Connection: Keep-Alive
  42. GET http://a.galaxy.far.far.away/%TESTNUMBER HTTP/1.1
  43. Host: a.galaxy.far.far.away
  44. User-Agent: curl/%VERSION
  45. Accept: */*
  46. Proxy-Connection: Keep-Alive
  47. </protocol>
  48. </verify>
  49. </testcase>