test183 1.1 KB

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: Thu, 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/183 http://a.galaxy.far.far.away/183 --proxy http://%HOSTIP:%HTTPPORT
  29. </command>
  30. </client>
  31. # Verify data after the test has been "shot"
  32. <verify>
  33. <strip>
  34. ^User-Agent: curl/.*
  35. </strip>
  36. <protocol>
  37. GET http://deathstar.another.galaxy/183 HTTP/1.1
  38. User-Agent: curl/7.12.2-CVS (i686-pc-linux-gnu) libcurl/7.12.2-CVS OpenSSL/0.9.6b zlib/1.1.4 libidn/0.4.6
  39. Host: deathstar.another.galaxy
  40. Accept: */*
  41. Proxy-Connection: Keep-Alive
  42. GET http://a.galaxy.far.far.away/183 HTTP/1.1
  43. User-Agent: curl/7.12.2-CVS (i686-pc-linux-gnu) libcurl/7.12.2-CVS OpenSSL/0.9.6b zlib/1.1.4 libidn/0.4.6
  44. Host: a.galaxy.far.far.away
  45. Accept: */*
  46. Proxy-Connection: Keep-Alive
  47. </protocol>
  48. </verify>
  49. </testcase>