test1526 1.2 KB

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