[Spacewalk-list] API with Proxy server returns error

Jeremy Davis jdavis4102 at gmail.com
Tue Aug 23 21:58:49 UTC 2011


Hello List,

I have a working Perl script that when used on the main application server
of Spacewalk it works fine. When I change the host to a Proxy server it
gives the following error.

500 Bad chunk-size in HTTP response: <?xml version="1.0"
encoding="UTF-8"?><methodResponse><params><param><value><array><data><value><struct><member><name>id</name><value><i4>1000010545</i4></value></member>

Any idea as to how I can resolve this issue?

The calls I am making are as follows:

Host, username and password is given within the same script. Just removed it
for security reasons.

my $client = new Frontier::Client(url => "https://$HOST/rpc/api");
my $session = $client->call('auth.login',$user, $pass);

my $allsystems = $client->call('system.listSystems', $session);
 foreach my $system (@$allsystems) {
   my $systemname = $system->{'name'};
   my $systemid = $system->{'id'};
   print "$systemname and $systemid \n";
 }


-- 
Kind regards,
Jeremy Davis, GCIH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20110823/21ea90eb/attachment.htm>


More information about the Spacewalk-list mailing list