test63 716 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Server-side
  2. <reply>
  3. <data>
  4. HTTP/1.1 200 OK swsclose
  5. Date: Thu, 09 Nov 2010 14:49:00 GMT
  6. Content-Type: text/html
  7. the content would go here
  8. </data>
  9. </reply>
  10. # Client-side
  11. <client>
  12. <server>
  13. http
  14. </server>
  15. <name>
  16. HTTP with proxy authorization set in environment
  17. </name>
  18. <setenv>
  19. http_proxy=http://fake:user@%HOSTIP:%HOSTPORT/
  20. </setenv>
  21. <command>
  22. http://we.want.that.site.com/63
  23. </command>
  24. </test>
  25. # Verify data after the test has been "shot"
  26. <verify>
  27. <strip>
  28. ^User-Agent:.*
  29. </strip>
  30. <protocol>
  31. GET http://we.want.that.site.com/63 HTTP/1.1
  32. Proxy-authorization: Basic aHR0cDovL2Zha2U6dXNlcg==
  33. Host: we.want.that.site.com
  34. Pragma: no-cache
  35. Accept: */*
  36. </protocol>
  37. </verify>