test1525 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP PUT
  6. HTTP CONNECT
  7. HTTP proxy
  8. proxytunnel
  9. CURLOPT_PROXYHEADER
  10. </keywords>
  11. </info>
  12. # Server-side
  13. <reply>
  14. <connect>
  15. HTTP/1.1 200 OK
  16. </connect>
  17. <data>
  18. HTTP/1.1 200 OK swsclose
  19. Date: Tue, 09 Nov 2010 14:49:00 GMT
  20. Server: test-server/fake
  21. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  22. ETag: "21025-dc7-39462498"
  23. </data>
  24. <datacheck>
  25. HTTP/1.1 200 OK
  26. HTTP/1.1 200 OK swsclose
  27. Date: Tue, 09 Nov 2010 14:49:00 GMT
  28. Server: test-server/fake
  29. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  30. ETag: "21025-dc7-39462498"
  31. </datacheck>
  32. </reply>
  33. # Client-side
  34. <client>
  35. <server>
  36. http
  37. http-proxy
  38. </server>
  39. <tool>
  40. lib%TESTNUMBER
  41. </tool>
  42. <name>
  43. CURLOPT_PROXYHEADER is ignored CURLHEADER_UNIFIED
  44. </name>
  45. <command>
  46. http://the.old.moo.%TESTNUMBER:%HTTPPORT/%TESTNUMBER %HOSTIP:%PROXYPORT
  47. </command>
  48. <features>
  49. proxy
  50. </features>
  51. </client>
  52. # Verify data after the test has been "shot"
  53. <verify>
  54. <proxy>
  55. CONNECT the.old.moo.%TESTNUMBER:%HTTPPORT HTTP/1.1
  56. Host: the.old.moo.%TESTNUMBER:%HTTPPORT
  57. Proxy-Connection: Keep-Alive
  58. User-Agent: Http Agent
  59. </proxy>
  60. <protocol>
  61. PUT /%TESTNUMBER HTTP/1.1
  62. Host: the.old.moo.%TESTNUMBER:%HTTPPORT
  63. Accept: */*
  64. User-Agent: Http Agent
  65. Content-Length: 13
  66. Hello Cloud!
  67. </protocol>
  68. </verify>
  69. </testcase>