test1257 862 B

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