test83 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP CONNECT
  7. HTTP Basic auth
  8. proxytunnel
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <data>
  15. HTTP/1.1 200 OK
  16. Date: Tue, 09 Nov 2010 14:49:00 GMT
  17. Server: test-server/fake swsclose
  18. Content-Type: text/html
  19. Funny-head: yesyes
  20. Content-Length: 9
  21. contents
  22. </data>
  23. <connect>
  24. HTTP/1.1 200 Mighty fine indeed
  25. </connect>
  26. <datacheck>
  27. HTTP/1.1 200 Mighty fine indeed
  28. HTTP/1.1 200 OK
  29. Date: Tue, 09 Nov 2010 14:49:00 GMT
  30. Server: test-server/fake swsclose
  31. Content-Type: text/html
  32. Funny-head: yesyes
  33. Content-Length: 9
  34. contents
  35. </datacheck>
  36. </reply>
  37. #
  38. # Client-side
  39. <client>
  40. <server>
  41. http
  42. http-proxy
  43. </server>
  44. <name>
  45. HTTP over proxy-tunnel with site authentication
  46. </name>
  47. <command>
  48. http://test.%TESTNUMBER:%HTTPPORT/we/want/that/page/%TESTNUMBER -p -x %HOSTIP:%PROXYPORT --user 'iam:my:;self'
  49. </command>
  50. <features>
  51. proxy
  52. </features>
  53. </client>
  54. #
  55. # Verify data after the test has been "shot"
  56. <verify>
  57. <proxy>
  58. CONNECT test.%TESTNUMBER:%HTTPPORT HTTP/1.1
  59. Host: test.%TESTNUMBER:%HTTPPORT
  60. User-Agent: curl/%VERSION
  61. Proxy-Connection: Keep-Alive
  62. </proxy>
  63. <protocol>
  64. GET /we/want/that/page/%TESTNUMBER HTTP/1.1
  65. Host: test.%TESTNUMBER:%HTTPPORT
  66. Authorization: Basic aWFtOm15OjtzZWxm
  67. User-Agent: curl/%VERSION
  68. Accept: */*
  69. </protocol>
  70. </verify>
  71. </testcase>