[Fusioninventory-devel] Display Server response

Mario Gzuk mariogzuk at technikz.de
Wed Nov 14 12:47:08 UTC 2012


My main error was that I compressed the also the json response (like the 
xml). Now I can work on!

Thank you!

Am 14.11.2012 12:53, schrieb Gonéri Le Bouder:
> On Wed, Nov 14, 2012 at 11:24:45AM +0100, Mario Gzuk wrote:
>
>> Ah... ok. I only have the 2.2.6 running now. I thought that it was allready
>> in there... Are there some prebuild packages for 2.3.x series? I only found:
>> http://prebuilt.fusioninventory.org/devel/2.2.x/
> 2.3.x is still in developement and not ready for production.
>   
>> So if the deploy task is running pure json, I allready dont know how to
>> start a deploy task via the prolog or the <REPLY><RESPONSE> answer. Is there
>> some doc how to do this?
> This is the documentation:
> http://forge.fusioninventory.org/projects/fusioninventory-agent/wiki/API-REST-deploy
>
> This changes may help understand what's going on:
>
> diff --git a/lib/FusionInventory/Agent/HTTP/Client/Fusion.pm b/lib/FusionInventory/Agent/HTTP/Client/Fusion.pm
> index 6ee5e7c..9421dba 100644
> --- a/lib/FusionInventory/Agent/HTTP/Client/Fusion.pm
> +++ b/lib/FusionInventory/Agent/HTTP/Client/Fusion.pm
> @@ -65,6 +65,8 @@ sub send { ## no critic (ProhibitBuiltinHomonyms)
>   
>       my $response = $self->request($request);
>   
> +    print $response."\n";
> +
>       return unless $response;
>   
>       return eval { from_json( $response->content(), { utf8  => 1 } ) };
>
>
> Best regards,
> --
>     Gonéri
>
>
> _______________________________________________
> Fusioninventory-devel mailing list
> Fusioninventory-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/fusioninventory-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/fusioninventory-devel/attachments/20121114/4f91edbe/attachment.html>


More information about the Fusioninventory-devel mailing list