test1297 947 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP CONNECT
  7. HTTP proxy
  8. proxytunnel
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <connect>
  15. HTTP/1.1 200 Mighty fine indeed
  16. Server: test tunnel 2000
  17. </connect>
  18. <data nocheck="yes">
  19. </data>
  20. </reply>
  21. #
  22. # Client-side
  23. <client>
  24. <server>
  25. http
  26. http-proxy
  27. </server>
  28. <name>
  29. CONNECT to peer that returns nothing
  30. </name>
  31. <command>
  32. --proxytunnel --proxy %HOSTIP:%PROXYPORT http://%HOSTIP.%TESTNUMBER:%HTTPPORT/we/want/that/page/%TESTNUMBER
  33. </command>
  34. <features>
  35. proxy
  36. </features>
  37. </client>
  38. #
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <proxy>
  42. CONNECT %HOSTIP.%TESTNUMBER:%HTTPPORT HTTP/1.1
  43. Host: %HOSTIP.%TESTNUMBER:%HTTPPORT
  44. User-Agent: curl/%VERSION
  45. Proxy-Connection: Keep-Alive
  46. </proxy>
  47. <protocol>
  48. GET /we/want/that/page/%TESTNUMBER HTTP/1.1
  49. Host: %HOSTIP.%TESTNUMBER:%HTTPPORT
  50. User-Agent: curl/%VERSION
  51. Accept: */*
  52. </protocol>
  53. # 52 - got nothing
  54. <errorcode>
  55. 52
  56. </errorcode>
  57. </verify>
  58. </testcase>