Title: Does not work behind BlueCoat proxy
Last modified: August 31, 2016

---

# Does not work behind BlueCoat proxy

 *  Resolved [muffintop](https://wordpress.org/support/users/muffintop/)
 * (@muffintop)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/does-not-work-behind-bluecoat-proxy/)
 * Hi,
 * After opening both our corporate firewall and proxy to allow Wordfence communication
   to servers, we have been unable to use the plugin for scanning.
    We logged a 
   call with BlueCoat support and they came back with the below;
 * CONNECT noc1.wordfence.com:443 HTTP/1.1
    Host: noc1.wordfence.com:443 User-Agent:
   Wordfence.com UA 6.0.24 Proxy-Connection: Keep-Alive Accept-Encoding: deflate;
   q=1.0, compress;q=0.5, gzip;q=0.5 Content-Type: application/x-www-form-urlencoded;
   charset=UTF-8 **Content-Length: 49**
 * When the server attempts the CONNECT in the second session, the proxy is immediately
   denying the request because the content-length should not appear in the CONNECT
   request!!!!
 * *********************************
    The reason why the customer was getting a 
   400 bad request is because with the HTTP CONNECT method, there should not be 
   any value in the content-length header of the request, if there is a value in
   the content-length header, the proxysg will treat it as an invalid request and
   return a 400 bad request.
 * To work around this issue, please enable HTTP Tolerant-request-parsing from the
   CLI of the proxy. The actual fix is for the developer to fix the coding of their
   HTTP CONNECT request.
 * ProxySG>en
    Enable Password: ProxySG#conf t Enter configuration commands, one
   per line. End with CTRL-Z. ProxySG#(config)http tolerant-request-parsing Ok *************************************************
 * We do not want to enable this as it will be Global and the effects will be unknown.
 * Are you able to address this? Please advise.
 * Thanks,
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [WFMattR](https://wordpress.org/support/users/wfmattr/)
 * (@wfmattr)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/does-not-work-behind-bluecoat-proxy/#post-7075274)
 * Wordfence doesn’t issue the CONNECT request itself, but uses WordPress’s HTTP
   classes, so I don’t think it is something that can be fixed within Wordfence.
 * You might need to adjust WordPress settings to use the proxy correctly, for outbound
   connections from the server.
 * At the beginning of WordPress’s class-wp-http-proxy.php file, there is some brief
   documentation on settings you can add to wp-config.php for using proxies:
    [https://develop.svn.wordpress.org/trunk/src/wp-includes/class-wp-http-proxy.php](https://develop.svn.wordpress.org/trunk/src/wp-includes/class-wp-http-proxy.php)
 * -Matt R
 *  [here](https://wordpress.org/support/users/here/)
 * (@here)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/does-not-work-behind-bluecoat-proxy/#post-7075322)
 * This is tracked in core at [https://core.trac.wordpress.org/ticket/34053](https://core.trac.wordpress.org/ticket/34053)
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/does-not-work-behind-bluecoat-proxy/#post-7075329)
 * Thanks for letting us know here!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Does not work behind BlueCoat proxy’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [wfasa](https://wordpress.org/support/users/wfasa/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/does-not-work-behind-bluecoat-proxy/#post-7075329)
 * Status: resolved