phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-developers] XMLRPC bug


From: Jean-Eric Cuendet
Subject: [Phpgroupware-developers] XMLRPC bug
Date: Fri, 8 Feb 2002 11:22:44 +0100

Hi,
I'm trying to access phpGW by XMLRPC. First, there is an error in the
doc (phpgw_server in phpgwapi/doc/xmlrpc).
It's said that to authenticate, you must give
username/password/server_name which is wrong: It's
usrname/password/domain. Else, it won't work.

Then I'm authenticated. I try to get some real data:
I put the auth token in the header of HTTP:
Authorization: Basic BlaBla
where BlaBla is the sessionid.":".kp3 base64 encoded. Right?

Here is the request:
'kp3': 'ebebab9386b9c5472665d4bc8ddf1320'
'sessionid': '3b7e4c5de00270864def9e54572f0880'
Auth: 3b7e4c5de00270864def9e54572f0880:ebebab9386b9c5472665d4bc8ddf1320
(converted then to base64)
AuthBase64:
M2I3ZTRjNWRlMDAyNzA4NjRkZWY5ZTU0NTcyZjA4ODA6ZWJlYmFiOTM4NmI5YzU0NzI2NjVk
NGJjOGRkZjEzMjA=

POST http://www.phpgroupware.org/demo/xmlrpc.php HTTP/1.0
Host:  www.phpgroupware.org
Authorization: Basic
M2I3ZTRjNWRlMDAyNzA4NjRkZWY5ZTU0NTcyZjA4ODA6ZWJlYmFiOTM4NmI5YzU0NzI2NjVk
NGJjOGRkZjEzMjA=
Content-Type: text/xml
X-Info: XML-RPC Processor (C) Red Hat, Inc ($Revision: 1.30 $)
X-Client-Version: 1
Content-Length: 316
<?xml version='1.0'?>
  <methodCall>
    <methodName>addressbook.boaddressbook.read_entries</methodName>
    <params>
      <param><value><struct>
        <member><name>start</name><value><int>1</int></value></member>
        <member><name>limit</name
>.<value><int>5</int></value>.</member>
      </struct ></value>.</param>
    </params>
  </methodCall>

Then the server told me that there was an error in the request packet.
Here it is:
HTTP/1 .1 400 Bad Request..Date: Fri, 0 8 Feb 2002 10:18:45 GMT
Server: Apache/1.3.22 (Unix) Debian GNU/Linux
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD><TITLE>400 Bad Request</TITLE></HEAD><BODY><H1>Bad
Request</H1>.Your browser sent a request that this server could not
understand.<P>.Request header field is missing
colonseparator.<P>.<PRE>.OGRkZjEzMjA=</PRE>.<P>.</BODY></HTML>

Thanks to help on that.
-jec

----------------------------------------------------------
Jean-Eric Cuendet
Linkvest SA
Av des Baumettes 19, 1020 Renens Switzerland
Tel +41 21 632 9043  Fax +41 21 632 9090
E-mail: address@hidden
http://www.linkvest.com
----------------------------------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]