test83 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #
  2. # Server-side
  3. <reply>
  4. <data>
  5. HTTP/1.1 200 OK
  6. Date: Thu, 09 Nov 2010 14:49:00 GMT
  7. Server: test-server/fake swsclose
  8. Content-Type: text/html
  9. Funny-head: yesyes
  10. contents
  11. </data>
  12. <datacheck>
  13. HTTP/1.1 200 Mighty fine indeed
  14. HTTP/1.1 200 OK
  15. Date: Thu, 09 Nov 2010 14:49:00 GMT
  16. Server: test-server/fake swsclose
  17. Content-Type: text/html
  18. Funny-head: yesyes
  19. contents
  20. </datacheck>
  21. </reply>
  22. #
  23. # Client-side
  24. <client>
  25. <server>
  26. http
  27. </server>
  28. <name>
  29. HTTP over proxy-tunnel with site authentication
  30. </name>
  31. <command>
  32. http://%HOSTIP:%HOSTPORT/we/want/that/page/83 -p -x %HOSTIP:%HOSTPORT --user iam:myself
  33. </command>
  34. </test>
  35. #
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <strip>
  39. ^User-Agent:.*
  40. </strip>
  41. <protocol>
  42. CONNECT 127.0.0.1:8999 HTTP/1.0
  43. User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
  44. GET /we/want/that/page/83 HTTP/1.1
  45. Authorization: Basic aWFtOm15c2VsZg==
  46. User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
  47. Host: 127.0.0.1:8999
  48. Pragma: no-cache
  49. Accept: */*
  50. </protocol>
  51. </verify>