test1525 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. </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. HTTP/1.1 200 OK swsclose
  27. Date: Thu, 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. lib1525
  41. </tool>
  42. <name>
  43. CURLOPT_PROXYHEADER is ignored CURLHEADER_UNIFIED
  44. </name>
  45. <command>
  46. http://the.old.moo.1525:%HTTPPORT/1525 %HOSTIP:%PROXYPORT
  47. </command>
  48. </client>
  49. # Verify data after the test has been "shot"
  50. <verify>
  51. <proxy>
  52. CONNECT the.old.moo.1525:%HTTPPORT HTTP/1.1
  53. Host: the.old.moo.1525:%HTTPPORT
  54. Proxy-Connection: Keep-Alive
  55. User-Agent: Http Agent
  56. </proxy>
  57. <protocol>
  58. PUT /1525 HTTP/1.1
  59. Host: the.old.moo.1525:%HTTPPORT
  60. Accept: */*
  61. User-Agent: Http Agent
  62. Content-Length: 13
  63. Expect: 100-continue
  64. Hello Cloud!
  65. </protocol>
  66. </verify>
  67. </testcase>