On Saturday, 25 February 2017 04:10:05 UTC-8, Cédric Krier wrote:
>
> On 2017-02-24 21:42, NotZippy wrote: 
> > wget -v -O - --no-http-keep-alive --post-data='{"id": 1, "method": 
> > "system.server.listMethods", "params": [null, null]} ' \ 
> >     --header="Content-Type: text/json" --no-check-certificate \ 
> >     https://demo4.2.tryton.org/demo4.2 
> > 
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> 
> > <title>405 Method Not Allowed</title> 
> > <h1>Method Not Allowed</h1> 
> > <p>The method is not allowed for the requested URL.</p> 
>
> The method is 'system.listMethods' see 
>
> http://hg.tryton.org/trytond/file/default/trytond/protocols/dispatcher.py#l36 
>
> -- 
> Cédric Krier - B2CK SPRL 
> Email/Jabber: [email protected] <javascript:> 
> Tel: +32 472 54 46 59 
> Website: http://www.b2ck.com/ 
>

Thanks Cédric, I see that the method was changed, I also see that this 
commit 
<https://github.com/tryton/trytond/commit/9cfc28b506ef5951ab4d0d56d90770bf7a954159>
 
changed to WSGI API , which changed the database endpoint from 
http://host/db to http://host/db/  (@app.route('/<string:database_name>/', 
methods=['POST'])). It also appears at the same time this was implement user 
authorization 
<https://github.com/tryton/tryton/commit/de484f1f853da8902b2ff304859e7fc72b75227d>
 
was added to the request header - I guess this was to prevent a MIM from 
hijacking a session.. If there is more documentation on changes to the 
JSON-RPC calls let me know. Otherwise I will pick through the changes and 
see if I can come up with a couple of working samples to add to this post..

Nz

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/7a3d6149-68e9-417a-92fd-c2b458d7927f%40googlegroups.com.

Reply via email to