test1527 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP CONNECT
  7. HTTP proxy
  8. proxytunnel
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <connect>
  14. HTTP/1.1 200 OK
  15. We-are: good
  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. We-are: good
  27. HTTP/1.1 200 OK swsclose
  28. Date: Tue, 09 Nov 2010 14:49:00 GMT
  29. Server: test-server/fake
  30. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  31. ETag: "21025-dc7-39462498"
  32. </datacheck>
  33. </reply>
  34. # Client-side
  35. <client>
  36. <server>
  37. http
  38. http-proxy
  39. </server>
  40. <tool>
  41. lib%TESTNUMBER
  42. </tool>
  43. <name>
  44. Check same headers are generated with CURLOPT_HEADEROPT == CURLHEADER_UNIFIED
  45. </name>
  46. <command>
  47. http://the.old.moo.%TESTNUMBER:%HTTPPORT/%TESTNUMBER %HOSTIP:%PROXYPORT
  48. </command>
  49. <features>
  50. proxy
  51. </features>
  52. </client>
  53. # Verify data after the test has been "shot"
  54. <verify>
  55. <proxy>
  56. CONNECT the.old.moo.%TESTNUMBER:%HTTPPORT HTTP/1.1
  57. Host: the.old.moo.%TESTNUMBER:%HTTPPORT
  58. Proxy-Connection: Keep-Alive
  59. User-Agent: Http Agent
  60. Expect: 100-continue
  61. </proxy>
  62. <protocol>
  63. PUT /%TESTNUMBER HTTP/1.1
  64. Host: the.old.moo.%TESTNUMBER:%HTTPPORT
  65. Accept: */*
  66. User-Agent: Http Agent
  67. Expect: 100-continue
  68. Content-Length: 13
  69. Hello Cloud!
  70. </protocol>
  71. </verify>
  72. </testcase>