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: Thu, 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: Thu, 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.83:%HTTPPORT/we/want/that/page/83 -p -x %HOSTIP:%PROXYPORT --user iam:myself
  49. </command>
  50. </client>
  51. #
  52. # Verify data after the test has been "shot"
  53. <verify>
  54. <strip>
  55. ^User-Agent:.*
  56. </strip>
  57. <proxy>
  58. CONNECT test.83:%HTTPPORT HTTP/1.1
  59. User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
  60. Host: test.83:%HTTPPORT
  61. Proxy-Connection: Keep-Alive
  62. </proxy>
  63. <protocol>
  64. GET /we/want/that/page/83 HTTP/1.1
  65. Authorization: Basic aWFtOm15c2VsZg==
  66. User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
  67. Host: test.83:%HTTPPORT
  68. Accept: */*
  69. </protocol>
  70. </verify>
  71. </testcase>