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

CC BY-SA 3.0
2014-07-17T08:29:22.643Z
Great, thanks! I know this would be useful in a lot of corporate environments.
Goldyberg
CC BY-SA 3.0
2014-07-17T00:17:07.853Z
2014-07-17T00:17:07.853Z
Brad Bell
<p>Is there a config setting to be able to set a proxy in Craft? WordPress has something like this...</p>

<pre><code>define('WP_PROXY_HOST', 'url_here);
define('WP_PROXY_PORT', 'port_here');
</code></pre>

<p>I was thinking a config setting like the following would be great...</p>

<pre><code>'setProxy' =&gt; array(
    'host' =&gt; 'url_here',
    'port' =&gt; 'port_here'
),
</code></pre>

<p>Thanks,
David</p>

CC BY-SA 3.0
2014-07-16T15:32:05.127Z
I'm having a hard time finding any documentation for those constants.  Do you know of any?
Brad Bell
CC BY-SA 3.0
2014-07-16T17:57:31.583Z
I assume it's for making all of Craft's outbound requests (updating, etc.) point to a proxy server for internet access?
Brad Bell
CC BY-SA 3.0
2014-07-17T00:08:49.517Z
Yup that's correct. It's not obviously available in the WP codex but http://codex.wordpress.org/HTTP_API has a couple paragraphs. "...WordPress 2.8, compression, cookie support and proxy support were added."
Goldyberg
CC BY-SA 3.0
2014-07-17T00:09:16.063Z
Example...http://www.wprecipes.com/wordpress-fetch-file-through-proxy
Goldyberg
<config>
Setting a proxy?
# Setting a proxy?

(Asked by: username_0 on 2014-07-16)

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

**Tags:** config

> **Comments:**
> **username_1**: I'm having a hard time finding any documentation for those constants.  Do you know of any?  
> **username_1**: I assume it's for making all of Craft's outbound requests (updating, etc.) point to a proxy server for internet access?  
> **username_0**: Yup that's correct. It's not obviously available in the WP codex but http://codex.wordpress.org/HTTP_API has a couple paragraphs. "...WordPress 2.8, compression, cookie support and proxy support were added."  
> **username_0**: Example...http://www.wprecipes.com/wordpress-fetch-file-through-proxy  

---

## 1 answers

### Answer by username_1 on 2014-07-17. Score: 2 | Accepted answer

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

> **Comments:**
> **username_0**: Great, thanks! I know this would be useful in a lot of corporate environments.  

---

