test85 897 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. </reply>
  13. #
  14. # Client-side
  15. <client>
  16. <server>
  17. http
  18. </server>
  19. <name>
  20. HTTP over proxy with site and proxy authentication
  21. </name>
  22. <command>
  23. http://%HOSTIP:%HOSTPORT/we/want/that/page/85 -x %HOSTIP:%HOSTPORT --user iam:myself --proxy-user testing:this
  24. </command>
  25. </test>
  26. #
  27. # Verify data after the test has been "shot"
  28. <verify>
  29. <strip>
  30. ^User-Agent:.*
  31. </strip>
  32. <protocol>
  33. GET http://127.0.0.1:8999/we/want/that/page/85 HTTP/1.1
  34. Proxy-authorization: Basic dGVzdGluZzp0aGlz
  35. Authorization: Basic aWFtOm15c2VsZg==
  36. User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
  37. Host: 127.0.0.1:8999
  38. Pragma: no-cache
  39. Accept: */*
  40. </protocol>
  41. </verify>