test1249 798 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP proxy
  6. NO_PROXY
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 OK
  13. Date: Tue, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Content-Length: 4
  16. Content-Type: text/html
  17. foo
  18. </data>
  19. </reply>
  20. # Client-side
  21. <client>
  22. <server>
  23. http
  24. </server>
  25. <name>
  26. Access a non-proxied host with using the combination of --proxy option and NO_PROXY env var
  27. </name>
  28. <setenv>
  29. NO_PROXY=%HOSTIP
  30. </setenv>
  31. <command>
  32. http://user:secret@%HOSTIP:%HTTPPORT/%TESTNUMBER --proxy http://dummy:%NOLISTENPORT/ --max-time 5
  33. </command>
  34. </client>
  35. # Verify data after the test has been "shot"
  36. <verify>
  37. <protocol>
  38. GET /%TESTNUMBER HTTP/1.1
  39. Host: %HOSTIP:%HTTPPORT
  40. Authorization: Basic dXNlcjpzZWNyZXQ=
  41. User-Agent: curl/%VERSION
  42. Accept: */*
  43. </protocol>
  44. </verify>
  45. </testcase>