test1244 885 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. <features>
  33. proxy
  34. </features>
  35. <name>
  36. HTTP GET same URL - different proxy ports
  37. </name>
  38. <command>
  39. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -x %HOSTIP:%HTTPPORT --next http://%HOSTIP:%HTTPPORT/%TESTNUMBER00001 -x %HOSTIP:%HTTPSPORT
  40. </command>
  41. </client>
  42. #
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. # the second request meant to fail
  46. <errorcode>
  47. 56
  48. </errorcode>
  49. <protocol>
  50. GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1
  51. Host: %HOSTIP:%HTTPPORT
  52. User-Agent: curl/%VERSION
  53. Accept: */*
  54. Proxy-Connection: Keep-Alive
  55. </protocol>
  56. </verify>
  57. </testcase>