test1250 804 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP proxy
  6. http_proxy
  7. noproxy
  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. foo
  19. </data>
  20. </reply>
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. Access a non-proxied host with using the combination of http_proxy env var and --noproxy option
  28. </name>
  29. <setenv>
  30. http_proxy=http://dummy:%PROXYPORT/
  31. </setenv>
  32. <command>
  33. http://user:secret@%HOSTIP:%HTTPPORT/1250 --noproxy %HOSTIP --max-time 5
  34. </command>
  35. </client>
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <strip>
  39. ^User-Agent:.*
  40. </strip>
  41. <protocol>
  42. GET /1250 HTTP/1.1
  43. Host: %HOSTIP:%HTTPPORT
  44. Authorization: Basic dXNlcjpzZWNyZXQ=
  45. Accept: */*
  46. </protocol>
  47. </verify>
  48. </testcase>