[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Phpgroupware-developers] XMLRPC bug
From: |
Miles Lott |
Subject: |
Re: [Phpgroupware-developers] XMLRPC bug |
Date: |
Fri, 08 Feb 2002 07:51:43 -0600 |
Jean-Eric Cuendet wrote:
>
> 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.
The document is for peer servers in which case you do send server_name
instead of domain.
> 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?
Yep.
> Here is the request:
> 'kp3': 'ebebab9386b9c5472665d4bc8ddf1320'
> 'sessionid': '3b7e4c5de00270864def9e54572f0880'
> Auth: 3b7e4c5de00270864def9e54572f0880:ebebab9386b9c5472665d4bc8ddf1320
> (converted then to base64)
> AuthBase64:
> M2I3ZTRjNWRlMDAyNzA4NjRkZWY5ZTU0NTcyZjA4ODA6ZWJlYmFiOTM4NmI5YzU0NzI2NjVk
> NGJjOGRkZjEzMjA=
I sure hope your request starts with the following. POST should be
the beginning of it. Then I think you need an extra newline
after the Content-Length header. Make sure that the Auth line is all
one
line. Try not sending the X-??? headers, unless you can move them to
before the Content-??? headers.
> 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>
This was sent by Apache, not phpGroupWare. There is something
basically wrong with the structure of your post. Try running
telnet to port 80 of a phpgroupware-enabled apache server and
post the same data as in your request above...
--
Miles Lott - phpGroupWare
http://www.phpgroupware.org
- [Phpgroupware-developers] XMLRPC bug, Jean-Eric Cuendet, 2002/02/08
- Re: [Phpgroupware-developers] XMLRPC bug,
Miles Lott <=
- Re: [Phpgroupware-developers] XMLRPC bug, Chris Weiss, 2002/02/08
- RE: [Phpgroupware-developers] XMLRPC bug, Jean-Eric Cuendet, 2002/02/08
- RE: [Phpgroupware-developers] XMLRPC bug, Jean-Eric Cuendet, 2002/02/08
- Re: [Phpgroupware-developers] XMLRPC bug, Miles Lott, 2002/02/08
- [Phpgroupware-developers] instalation problem-----mysql, dhayalan suresh, 2002/02/09
- Re: [Phpgroupware-developers] instalation problem-----mysql, Michael Dean, 2002/02/09
- Re: [Phpgroupware-developers] instalation problem-----mysql, Miles Lott, 2002/02/09
- [Phpgroupware-developers] Another fresh install problem, M . vanDorp, 2002/02/09
- Re: [Phpgroupware-developers] Another fresh install problem, M . vanDorp, 2002/02/09
- Re: [Phpgroupware-developers] Another fresh install problem, Bob Schader, 2002/02/09