test1254 856 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. <server>
  24. http
  25. </server>
  26. <name>
  27. Under condition using --proxy, override NO_PROXY by --nproxy and access target URL through proxy
  28. </name>
  29. <setenv>
  30. NO_PROXY=example.com
  31. </setenv>
  32. <command>
  33. http://somewhere.example.com/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --noproxy ""
  34. </command>
  35. <features>
  36. proxy
  37. </features>
  38. </client>
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <protocol>
  42. GET http://somewhere.example.com/%TESTNUMBER HTTP/1.1
  43. Host: somewhere.example.com
  44. User-Agent: curl/%VERSION
  45. Accept: */*
  46. Proxy-Connection: Keep-Alive
  47. </protocol>
  48. </verify>
  49. </testcase>