test1249 827 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. <features>
  23. proxy
  24. </features>
  25. <server>
  26. http
  27. </server>
  28. <name>
  29. Access a non-proxied host with using the combination of --proxy option and NO_PROXY env var
  30. </name>
  31. <setenv>
  32. NO_PROXY=%HOSTIP
  33. </setenv>
  34. <command>
  35. http://user:secret@%HOSTIP:%HTTPPORT/%TESTNUMBER --proxy http://dummy:%NOLISTENPORT/ --max-time 5
  36. </command>
  37. </client>
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <protocol>
  41. GET /%TESTNUMBER HTTP/1.1
  42. Host: %HOSTIP:%HTTPPORT
  43. Authorization: Basic dXNlcjpzZWNyZXQ=
  44. User-Agent: curl/%VERSION
  45. Accept: */*
  46. </protocol>
  47. </verify>
  48. </testcase>