test1248 767 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP proxy
  6. noproxy
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 OK
  13. Date: Thu, 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 --noproxy option
  27. </name>
  28. <command>
  29. http://user:secret@%HOSTIP:%HTTPPORT/1248 --proxy http://dummy:%PROXYPORT/ --noproxy %HOSTIP --max-time 5
  30. </command>
  31. </client>
  32. # Verify data after the test has been "shot"
  33. <verify>
  34. <strip>
  35. ^User-Agent:.*
  36. </strip>
  37. <protocol>
  38. GET /1248 HTTP/1.1
  39. Host: %HOSTIP:%HTTPPORT
  40. Authorization: Basic dXNlcjpzZWNyZXQ=
  41. Accept: */*
  42. </protocol>
  43. </verify>
  44. </testcase>