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
    Commented Jul 16, 2014 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
    Commented Jul 16, 2014 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
    Commented Jul 17, 2014 at 0:08
  • Example...wprecipes.com/wordpress-fetch-file-through-proxy
    – Goldyberg
    Commented Jul 17, 2014 at 0:09

1 Answer 1


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
    Commented Jul 17, 2014 at 8:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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