← Back to team overview

mahara-contributors team mailing list archive

Re: [Mahara-core] [Bug 562699] Re: xmlrpc client API doesn't use proxy settings

 

On 26 July 2010 18:36, François Marier <francois@xxxxxxxxxx> wrote:

> We need to review every bit of code which uses curl.
>

They should all be using mahara_http_request() iirc. I don't recall ever
converting the xmlrpc stuff to that though.

-- 
Regards,
Nigel McNie
http://nigel.mcnie.name/ | +64 27 469 6038 | http://twitter.com/nigelmcnie
My latest blog post:
http://nigel.mcnie.name/blog/howto-convert-from-it-geek-to-entrepreneur-part-5-getting-started

-- 
xmlrpc client API doesn't use proxy settings
https://bugs.launchpad.net/bugs/562699
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.

Status in Mahara ePortfolio: Triaged

Bug description:
in api/xmlrpc/client.php: function send():

this doesn't ever use proxy settings, hence was timing out for me because my web server MUST go through a proxy.

I was able to fix it by adding these lines:

        if($proxy_address = get_config('proxyaddress')) {
          curl_setopt($ch, CURLOPT_PROXY, $proxy_address);
        }

Thanks





References