test84 816 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 authentication
  21. </name>
  22. <command>
  23. http://%HOSTIP:%HOSTPORT/we/want/that/page/84 -x %HOSTIP:%HOSTPORT --user iam:myself
  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/84 HTTP/1.1
  34. Authorization: Basic aWFtOm15c2VsZg==
  35. User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
  36. Host: 127.0.0.1:8999
  37. Pragma: no-cache
  38. Accept: */*
  39. </protocol>
  40. </verify>