Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5452 Lượt xem

Hi, how are all of you? I hope you are going well.

I hope you can help me, I searched this issue through all the web and I don't find any solution, so I decided to write to you.

I am trying to make a simple authentication to the Web Service API of Odoo V9 and the only thing that I have got is the following error:

"This page doesn't work" --> ERR_EMPTY_RESPONSE

My code is the same as the documentation shows:

<?php

$url = 'http://162.243.57.148:8069';

 $db = 'lisa_1';

 $username = 'admin';

 $password = 'admin';

 require_once('./ripcord-master/ripcord.php');

 $common = ripcord::client($url . "/xmlrpc/2/common");

 $uid = $common->authenticate($db, $username, $password, array());

echo "I am connected " . $uid;

?>

In advance thanks a lot for your help. I need this so much.

Thank you

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello,

Before trying to authenticate, can you just try to get the version of your Odoo instance ? just to be sure you can reach it.

Like this:

$common = ripcord::client($url . "/xmlrpc/2/common");

print_r( $common->version() );

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 18
4631
0
thg 5 23
2280
2
thg 5 23
8820
1
thg 3 24
5426
0
thg 12 20
4713