demexp-dev
[Top][All Lists]
Advanced

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

Re: [Demexp-dev] Cookie..


From: David MENTRE
Subject: Re: [Demexp-dev] Cookie..
Date: Sat, 22 Sep 2007 13:35:51 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Hello Diogene,

Diogene Laerce <address@hidden> writes:

> Sorry but I didnt have much time this week, so here am I :

No worry, everybody works at his own pace.

> In second hand, I saw this in the "xmlrpc2.2 for php" doc :
>
> ______________________________________________________________
>
>
> $client->setCookie($name, $value, $path, $domain, $port);
>
> string        $name;
> string        $value;
> string        $path;
> string        $domain;
> int   $port;
>
> }
> ______________________________________________________________
>
> This should be used to set a cookie to send back to the server for
> dialog purpose.

Ok, there is a misunderstanding. The demexp's "cookie" has nothing in
common with HTTP's "cookie". demexp cookie is just a plain integer that
you should reuse for all later calls to the demexp server.

> PS : The server response debug :
>
> ---GOT---
> HTTP/1.0 200 OK
> Date: Sat, 22 Sep 2007 06:09:32 GMT
> Content-Length: 129
> Content-Type: text/xml
> Server: Apache/1.3.33 (Unix) PHP/4.3.11 mod_perl/1.29
>
> <?xml version='1.0'?>
> <methodResponse>
> <params>
> <param>
> <value><int>332720051</int></value>
              ^^^^^^^^^this is the demexp cookie
        

> </param>
> </params>
> </methodResponse>
>
> ---END---
> HEADER: date: Sat, 22 Sep 2007 06:09:32 GMT
> HEADER: content-length: 129
> HEADER: content-type: text/xml
> HEADER: server: Apache/1.3.33 (Unix) PHP/4.3.11 mod_perl/1.29
> ---PARSED---
> xmlrpcval::__set_state(array(
>    'me' => 
>   array (
>     'int' => 332720051,
               ^^^^^^^^^and you have it in your PHP data structure
>   ),
>    'mytype' => 1,
>    '_php_class' => NULL,
> ))
> ---END---

So you are close to a success. You only need to find how to extract this
integer from the value you get after the XML-RPC call.

Yours,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE <address@hidden>
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A




reply via email to

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