Is there a config setting to be able to set a proxy in Craft? WordPress has something like this...

define('WP_PROXY_HOST', 'url_here);
define('WP_PROXY_PORT', 'port_here');

I was thinking a config setting like the following would be great...

'setProxy' => array(
    'host' => 'url_here',
    'port' => 'port_here'

Thanks, David

  • I'm having a hard time finding any documentation for those constants. Do you know of any?
    – Brad Bell
    Jul 16 '14 at 15:32
  • I assume it's for making all of Craft's outbound requests (updating, etc.) point to a proxy server for internet access?
    – Brad Bell
    Jul 16 '14 at 17:57
  • Yup that's correct. It's not obviously available in the WP codex but codex.wordpress.org/HTTP_API has a couple paragraphs. "...WordPress 2.8, compression, cookie support and proxy support were added."
    – Goldyberg
    Jul 17 '14 at 0:08

Currently, it's not possible, but I'll add it to our "todo" list!

  • Great, thanks! I know this would be useful in a lot of corporate environments.
    – Goldyberg
    Jul 17 '14 at 8:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.