I've committed support for a proxy server in shindig, umm i think it
was 2 days ago?
svn update and edit shindig/php/config/container.php and change the
proxy key, like:
'proxy' => '192.168.1.1:8080'
(ofc use your proxy's IP and port and not the one from the example:P)
-- Chris
On Jun 27, 2008, at 10:14 AM, tuhin.barua wrote:
>
> i think you probably need proxy support
> you can do this way.... open php/src/common/samplecontainer/
> BasicRemoteContentFetcher.php
> and add this 2 line in fetchRequest() method after curl init
>
> curl_setopt($request->handle, CURLOPT_HTTPPROXYTUNNEL, 1);
> curl_setopt($request->handle, CURLOPT_PROXY, 'http://
> 10.80.2.13:80'); // here proxy server = 10.80.2.13 and port = 80 :)
>
>
> On Jun 25, 8:39 pm, Alex <[EMAIL PROTECTED]> wrote:
>> I am trying to set up the php Shindig gadget server and keep getting
>> this error when I test it by visiting http://<my server>/gadgets/ifr?
>> url=http://www.labpixies.com/campaigns/todo/todo.xml
>>
>> I originally got an error about being in safe_mode but I turned that
>> off and it didn't fix the problem.
>> Does anyone know why this would be happening or how I can fix it?
>>
>> Thanks so much in advance. The error is below:
>>
>> Error
>> Failed to retrieve gadget content
>>
>> Debug backtrace
>>
>> Array
>> (
>> [0] => Array
>> (
>> [file] => /vol/web/shindig/trunk/php/src/gadgets/http/
>> GadgetRenderingServlet.php
>> [line] => 76
>> [function] => outputError
>> [class] => GadgetRenderingServlet
>> [object] => GadgetRenderingServlet Object
>> (
>> [context:private] => GadgetContext Object
>> (
>> [httpFetcher:protected] =>
>> BasicRemoteContent Object
>> (
>> )
>>
>> [locale:protected] =>
>> [renderingContext:protected] => GADGET
>> [registry:protected] =>
>> [userPrefs:protected] =>
>> [gadgetId:protected] =>
>> [view:protected] => profile
>> [moduleId:protected] => 0
>> [url:protected]
>> =>http://www.labpixies.com/campaigns/todo/todo.xml
>> [cache:protected] =>
>> [blacklist:protected] =>
>> BasicGadgetBlacklist Object
>> (
>> [rules:private] => Array
>> (
>> )
>>
>> )
>>
>> [ignoreCache:protected] =>
>> [forcedJsLibs:protected] =>
>> [containerConfig:protected] =>
>> [container:protected] => default
>> [refreshInterval:protected] =>
>> )
>>
>> [lastModified:private] =>
>> [contentType:private] => text/html
>> [charset:private] => UTF-8
>> [noCache:private] =>
>> [cacheTime:private] => 86400
>> [noHeaders] =>
>> )
>>
>> [type] => ->
>> [args] => Array
>> (
>> [0] => GadgetException Object
>> (
>> [message:protected] => Failed to retrieve
>> gadget content
>> [string:private] =>
>> [code:protected] => 0
>> [file:protected] => /vol/web/shindig/
>> trunk/
>> php/src/gadgets/GadgetServer.php
>> [line:protected] => 44
>> [trace:private] => Array
>> (
>> [0] => Array
>> (
>> [file] => /vol/web/
>> shindig/
>> trunk/php/src/gadgets/GadgetServer.php
>> [line] => 31
>> [function] => specLoad
>> [class] => GadgetServer
>> [type] => ->
>> [args] => Array
>> (
>> [0] =>
>> GadgetContext Object
>> (
>>
>> [httpFetcher:protected] => BasicRemoteContent Object
>> (
>> )
>>
>> [locale:protected] =>
>>
>> [renderingContext:protected] => GADGET
>>
>> [registry:protected] =>
>>
>> [userPrefs:protected] =>
>>
>> [gadgetId:protected] =>
>>
>> [view:protected] => profile
>>
>> [moduleId:protected] => 0
>>
>> [url:protected] =>http://www.labpixies.com/campaigns/todo/todo.xml
>>
>> [cache:protected] =>
>>
>> [blacklist:protected] => BasicGadgetBlacklist Object
>> (
>>
>> [rules:private] => Array
>>
>> (
>> )
>>
>> )
>>
>> [ignoreCache:protected] =>
>>
>> [forcedJsLibs:protected] =>
>>
>> [containerConfig:protected] =>
>>
>> [container:protected] => default
>>
>> [refreshInterval:protected] =>
>> )
>>
>> )
>>
>> )
>>
>> [1] => Array
>> (
>> [file] => /vol/web/
>> shindig/
>> trunk/php/src/gadgets/http/GadgetRenderingServlet.php
>> [line] => 73
>> [function] =>
>> processGadget
>> [class] => GadgetServer
>> [type] => ->
>> [args] => Array
>> (
>> [0] =>
>> GadgetContext Object
>> (
>>
>> [httpFetcher:protected] => BasicRemoteContent Object
>> (
>> )
>>
>> [locale:protected] =>
>>
>> [renderingContext:protected] => GADGET
>>
>> [registry:protected] =>
>>
>> [userPrefs:protected] =>
>>
>> [gadgetId:protected] =>
>>
>> [view:protected] => profile
>>
>> [moduleId:protected] => 0
>>
>> [url:protected] =>http://www.labpixies.com/campaigns/todo/todo.xml
>>
>> [cache:protected] =>
>>
>> [blacklist:protected] => BasicGadgetBlacklist Object
>> (
>>
>> [rules:private] => Array
>>
>> (
>> )
>>
>> )
>>
>> [ignoreCache:protected] =>
>>
>> [forcedJsLibs:protected] =>
>>
>> [containerConfig:protected] =>
>>
>> [container:protected] => default
>>
>> [refreshInterval:protected] =>
>> )
>>
>> )
>>
>> )
>>
>> [2] => Array
>> (
>> [file] => /vol/web/
>> shindig/
>> trunk/php/index.php
>> [line] => 112
>> [function] => doGet
>> [class] =>
>> GadgetRenderingServlet
>> [type] => ->
>> [args] => Array
>> (
>> )
>>
>> )
>>
>> )
>>
>> )
>>
>> )
>>
>> )
>>
>> [1] => Array
>> (
>> [file] => /vol/web/shindig/trunk/php/index.php
>> [line] => 112
>> [function] => doGet
>> [class] => GadgetRenderingServlet
>> [object] => GadgetRenderingServlet Object
>> (
>> [context:private] => GadgetContext Object
>> (
>> [httpFetcher:protected] =>
>> BasicRemoteContent Object
>> (
>> )
>>
>> [locale:protected] =>
>> [renderingContext:protected] => GADGET
>> [registry:protected] =>
>> [userPrefs:protected] =>
>> [gadgetId:protected] =>
>> [view:protected] => profile
>> [moduleId:protected] => 0
>> [url:protected]
>> =>http://www.labpixies.com/campaigns/todo/todo.xml
>> [cache:protected] =>
>> [blacklist:protected] =>
>> BasicGadgetBlacklist Object
>> (
>> [rules:private] => Array
>> (
>> )
>>
>> )
>>
>> [ignoreCache:protected] =>
>> [forcedJsLibs:protected] =>
>> [containerConfig:protected] =>
>> [container:protected] => default
>> [refreshInterval:protected] =>
>> )
>>
>> [lastModified:private] =>
>> [contentType:private] => text/html
>> [charset:private] => UTF-8
>> [noCache:private] =>
>> [cacheTime:private] => 86400
>> [noHeaders] =>
>> )
>>
>> [type] => ->
>> [args] => Array
>> (
>> )
>>
>> )
>>
>> )
>>
>>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Implementing OpenSocial Containers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/opensocial-container?hl=en
-~----------~----~----~----~------~----~------~--~---