test1244 843 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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>
  13. HTTP/1.1 200 OK
  14. Server: test-server/fake
  15. Content-Length: 5
  16. bing
  17. </data>
  18. <data1>
  19. HTTP/1.1 200 OK
  20. Server: test-server/fake
  21. Content-Length: 6
  22. wrong
  23. </data1>
  24. </reply>
  25. #
  26. # Client-side
  27. <client>
  28. <server>
  29. http
  30. https
  31. </server>
  32. <name>
  33. HTTP GET same URL - different proxy ports
  34. </name>
  35. <command>
  36. http://%HOSTIP:%HTTPPORT/1244 -x %HOSTIP:%HTTPPORT --next http://%HOSTIP:%HTTPPORT/124400001 -x %HOSTIP:%HTTPSPORT
  37. </command>
  38. </client>
  39. #
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. # the second request meant to fail
  43. <errorcode>
  44. 56
  45. </errorcode>
  46. <strip>
  47. ^User-Agent:.*
  48. </strip>
  49. <protocol>
  50. GET http://%HOSTIP:%HTTPPORT/1244 HTTP/1.1
  51. Host: %HOSTIP:%HTTPPORT
  52. Accept: */*
  53. Proxy-Connection: Keep-Alive
  54. </protocol>
  55. </verify>
  56. </testcase>