test1252 790 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP proxy
  6. NO_PROXY
  7. noproxy
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Tue, 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. <features>
  24. proxy
  25. </features>
  26. <server>
  27. http
  28. </server>
  29. <name>
  30. Under condition using --proxy, override NO_PROXY by --nproxy and access target URL directly
  31. </name>
  32. <setenv>
  33. NO_PROXY=example.com
  34. </setenv>
  35. <command>
  36. http://%HOSTIP:%HTTPPORT/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --noproxy %HOSTIP
  37. </command>
  38. </client>
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <protocol>
  42. GET /%TESTNUMBER HTTP/1.1
  43. Host: %HOSTIP:%HTTPPORT
  44. User-Agent: curl/%VERSION
  45. Accept: */*
  46. </protocol>
  47. </verify>
  48. </testcase>