test1527 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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: Thu, 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: Thu, 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. lib1527
  42. </tool>
  43. <name>
  44. Check same headers are generated with CURLOPT_HEADEROPT == CURLHEADER_UNIFIED
  45. </name>
  46. <command>
  47. http://the.old.moo.1527:%HTTPPORT/1527 %HOSTIP:%PROXYPORT
  48. </command>
  49. </client>
  50. # Verify data after the test has been "shot"
  51. <verify>
  52. <proxy>
  53. CONNECT the.old.moo.1527:%HTTPPORT HTTP/1.1
  54. Host: the.old.moo.1527:%HTTPPORT
  55. Proxy-Connection: Keep-Alive
  56. User-Agent: Http Agent
  57. Expect: 100-continue
  58. </proxy>
  59. <protocol>
  60. PUT /1527 HTTP/1.1
  61. Host: the.old.moo.1527:%HTTPPORT
  62. Accept: */*
  63. User-Agent: Http Agent
  64. Expect: 100-continue
  65. Content-Length: 13
  66. Hello Cloud!
  67. </protocol>
  68. </verify>
  69. </testcase>