test84 901 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP Basic auth
  7. HTTP proxy
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data>
  14. HTTP/1.0 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. </data>
  21. </reply>
  22. #
  23. # Client-side
  24. <client>
  25. <server>
  26. http
  27. </server>
  28. <name>
  29. HTTP over proxy with site authentication
  30. </name>
  31. <command>
  32. http://%HOSTIP:%HTTPPORT/we/want/that/page/84 -x %HOSTIP:%HTTPPORT --user iam:myself
  33. </command>
  34. </client>
  35. #
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <strip>
  39. ^User-Agent:.*
  40. </strip>
  41. <protocol>
  42. GET http://%HOSTIP:%HTTPPORT/we/want/that/page/84 HTTP/1.1
  43. Authorization: Basic aWFtOm15c2VsZg==
  44. User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
  45. Host: %HOSTIP:%HTTPPORT
  46. Accept: */*
  47. Proxy-Connection: Keep-Alive
  48. </protocol>
  49. </verify>
  50. </testcase>