test1101 770 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP Basic auth
  7. NO_PROXY
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Thu, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Content-Length: 4
  17. Content-Type: text/html
  18. boo
  19. </data>
  20. </reply>
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. NO_PROXY test, with user name in URL
  28. </name>
  29. <setenv>
  30. no_proxy=%HOSTIP
  31. http_proxy=http://non-existing-host.haxx.se:3128/
  32. </setenv>
  33. <command>
  34. http://user:secret@%HOSTIP:%HTTPPORT/gimme/1101
  35. </command>
  36. </client>
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <strip>
  40. ^User-Agent:.*
  41. </strip>
  42. <protocol>
  43. GET /gimme/1101 HTTP/1.1
  44. Authorization: Basic dXNlcjpzZWNyZXQ=
  45. Host: %HOSTIP:%HTTPPORT
  46. Accept: */*
  47. </protocol>
  48. </verify>
  49. </testcase>