test2054 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. CURLOPT_CONNECT_TO
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Tue, 09 Nov 2010 14:49:00 GMT
  15. Content-Length: 3
  16. Content-Type: text/plain
  17. OK
  18. </data>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. Connect to specific host: use the first "connect-to" string that matches
  28. </name>
  29. <command>
  30. http://%HOSTIP:%HTTPPORT/%TESTNUMBER --connect-to foo::bar: --connect-to :123::456 --next http://www.example.com:%HTTPPORT/%TESTNUMBER --connect-to www.example.com::%HOSTIP: --connect-to www.example.com::foo: --next http://%HOSTIP:8083/%TESTNUMBER --connect-to :8083::%HTTPPORT --connect-to :8083::123 --next http://www.example.com:8084/%TESTNUMBER --connect-to www.example.com:8084:%HOSTIP:%HTTPPORT --connect-to www.example.com:8084:foo:123
  31. </command>
  32. </client>
  33. #
  34. # Verify data after the test has been "shot"
  35. <verify>
  36. <protocol>
  37. GET /%TESTNUMBER HTTP/1.1
  38. Host: %HOSTIP:%HTTPPORT
  39. User-Agent: curl/%VERSION
  40. Accept: */*
  41. GET /%TESTNUMBER HTTP/1.1
  42. Host: www.example.com:%HTTPPORT
  43. User-Agent: curl/%VERSION
  44. Accept: */*
  45. GET /%TESTNUMBER HTTP/1.1
  46. Host: %HOSTIP:8083
  47. User-Agent: curl/%VERSION
  48. Accept: */*
  49. GET /%TESTNUMBER HTTP/1.1
  50. Host: www.example.com:8084
  51. User-Agent: curl/%VERSION
  52. Accept: */*
  53. </protocol>
  54. </verify>
  55. </testcase>