sminnee / silverstripe-staticsiteconnector

Connector plugin for the SilverStripe External Content module that uses web scraping to import content.
8 stars 12 forks source link

Allow connecting through a HTTP proxy. #5

Open ghost opened 11 years ago

sminnee commented 11 years ago

Can you give a bit of background for this? How is the HTTP_PROXY env var set? Is the host:port syntax for it standardised?

stojg commented 11 years ago

Random idea: Make it a constant. In that case I can in my _ss_environment.pjp or mysite/_config.php

 define('HTTP_PROXY', $_ENV['HTTP_PROXY']);

Good thing with ENV is that I can override in apache vhost or .htaccess per project if needed.