voceconnect / lift-search

Lift Search for WordPress
14 stars 12 forks source link

Cannot connect to API due to proxy restriction #51

Closed markkevans closed 10 years ago

markkevans commented 10 years ago

Our configuration requires all outgoing connections to be routed via a proxy server which breaks your API client.

I've made a patch to add the proxy when its configured for Wordpress but not sure if that is the best approach?

prettyboymp commented 10 years ago

@markkevans I'm not sure if this will fix your issue as Lift should be using the Lift_HTTP_WP class unless you have some special filtering going on to force it to use Lift_HTTP_Curl. The Lift_HTTP_WP uses core's wp_remote_request() function for any remote requests which should be paying attention to the proxy constants already.

markkevans commented 10 years ago

Sorry for the slow reply, you are correct it does actually work successfully without this modification