[phpxmlrpc] PHPXMLRPC Weird Response

edgar.soldin at web.de edgar.soldin at web.de
Mon Jun 23 14:52:24 BST 2008


the localhost answer is gzip encoded see header 'Content-Encoding: gzip' 
.. disable the apache module or tell in your request that you won't 
accept gzip encoded http responses ..

regards ede
--
> Hi guys,
> I am using phpxmlrpc v2.2.1 for my xmlrpc server. Now problem is on my
> webserver the server & clients all run fine without any errors, but when i
> run same server & clients in localhost, it is giving weird response.
>
> turning on debug result in this in localhost
>
> ---GOT---
> HTTP/1.1 200 OK
> Date: Mon, 23 Jun 2008 13:31:59 GMT
> Server: Apache/2.2.3 (Win32) PHP/5.2.0
> X-Powered-By: PHP/5.2.0
> Vary: Accept-Encoding
>
> Content-Encoding: gzip
> Content-Length: 218
> Connection: close
> Content-Type: text/xml
>
>  � ������ ÕR; Â0 Ý9EÔ ``C
> (c)ÄÒ�¥ @�Zm¤&­��ßé	Ð B $`a²ý�<ÛOOÆ S� ±Ó�]DÓñ$�ÕH òE�¥äêÊ:
> @��ÆuI�;, R �ñ Ê = ¨óÜlý�Çl��´hH! (R)u&áZõ�µõj*á $Ü°��öç3�KöH
> &j�«�HDZa�Ñ o �òpù�kíµÁ²|A2 M ­PCïS g? 0A� Z,ñ�ü·"BëF¸¹ó(R)ѹ
> z?Ã�ÕÏ,¢Õi  ��
>
> ---END---
>
> whereas same response in webserver is
>
> ---GOT---
> HTTP/1.1 200 OK
> Date: Mon, 23 Jun 2008 13:40:15 GMT
> Server: Apache/1.3.37 (Unix) mod_jk/1.2.14 mod_auth_passthrough/1.8
> mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.4
> FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
>
> Vary: Accept-Charset
> X-Powered-By: PHP/5.2.1
> Connection: close
> Content-Type: text/xml
>
> <?xml version="1.0"?>
> <!-- SERVER DEBUG INFO (BASE64 ENCODED):
> KysrR09UKysrCjw/eG1sIHZlcnNpb249IjEuMCI/Pgo8bW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UxMLAogICAgICAgICAgKSksCiAgICAgICAgICAncmVnaW9uX2lkJyA9PiAKICAgICAgICAgIHhtbHJwY3ZhbDo6X19zZXRfc3RhdGUoYXJyYXkoCiAgICAgICAgICAgICAnbWUnID0+IAogICAgICAgICAgICBhcnJheSAoCiAgICAgICAgICAgICAgJ2ludCcgPT4gMSwKICAgICAgICAgICAgKSwKICAgICAgICAgICAgICdteXR5cGUnID0+IDEsCiAgICAgICAgICAgICAnX3BocF9jbGFzcycgPT4gTlVMTCwKICAgICAgICAgICkpLAogICAgICAgICksCiAgICAgICksCiAgICAgICAnbXl0eXBlJyA9PiAzLAogICAgICAgJ19waHBfY2xhc3MnID0+IE5VTEwsCiAgICApKSwKICApLAogICAnZGVidWcnID0+IDAsCiAgICdjb250ZW50X3R5cGUnID0+ICd0ZXh0L3htbCcsCikpCisrK0VORCsrKwo=
>
> -->
> <methodResponse>
> <params>
> <param>
> <value><array>
> <data>
> <value><struct>
> <member><name>xyz</name>
> <value><int>1</int></value>
>
> </member>
> </struct></value>
> </data>
> </array></value>
> </param>
> </params>
> </methodResponse>
> ---END---
>
> u can see the difference between configuration of servers in header.
> Please help, not able to trace the error in this
>
> Regards
> Deeps
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> phpxmlrpc mailing list
> phpxmlrpc at lists.usefulinc.com
> http://lists.usefulinc.com/cgi-bin/mailman/listinfo/phpxmlrpc
>   


-- 
public class WhoDidIt{ // A comment. I love comments 
  private static Person sender;


  public static void main (String[] foo){

  sender = new Person();
  sender.setName(new String[]{"Edgar", "Soldin"});

  Address address = new Address();
  address.setStreet("Stadtweg 119");
  address.setZip(39116);
  address.setCity("Magdeburg");
  address.setCountry("Germany");

  sender.setAddress(address);

  sender.setMobilePhone(" +49(0)171-2782880 ");
  sender.setWebSiteUrl(" http://www.soldin.de ");
  sender.setEmail(" edgar at soldin.de ");
  sender.setPGPPublicKey(" http://www.soldin.de/edgar_soldin.asc ");
  sender.setGender(true);

  System.out.println(sender.toString());
  }
}




More information about the phpxmlrpc mailing list