douzhong1730 2013-10-27 15:45
浏览 45

prestashop Web服务无法与rest客户端一起使用

I want to consume PrestaShop web services with REST client. I used Chrome Advanced rest client.

My request URL is http://127.0.0.1:8090/prestashop/api/customers.

Headers are u: V7846EKZZJ1OJAW486D66IS7GO24XKUZ.

I am always redirecting to the PrestaShop home page with this request. If I erase htaccess file then I am getting 404 page not found error. I have enabled the web services with PrestaShop admin > advanced parameters > web services. There I enabled both "PrestaShop's webservice" and "Active mode CGI for PHP" and I also generated the above mentioned key and enabled it.

  • 写回答

1条回答 默认 最新

  • dshmkgq558192365 2015-05-11 23:10
    关注

    Use this as a workaround:

    http://127.0.0.1:8090/prestashop/webservice/dispatcher.php?url=customers

    It seems that URL rewriting needs to be enabled.

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog