curl-meet
Re: Curl and Prestashop on Apache Server (OVH)
Date: Wed, 19 Dec 2018 08:43:07 +0100
On Tue, Dec 18, 2018 at 11:53:08PM +0000, Jean-Christophe Voyeux wrote:
> I installed prestashop shared web server at OVH.
> I wouldlike to update datas directly with my ERP in https.
> I actived webservices and created a user.
> If I try to access to the api with a browser (https://www.mysite.be/shop/api/),
> everything seems ok.
> It asks me my user account and shows me all allowed apis.
>
> If I try to do the same thing with curl (in command line)
> curl.exe -k --USER XXXXXXXX https://www.mysite.be/shop/api/
The option is called --user (lowercase).
> I receive a message 403 access forbiden !
>
> It seems that apache doesn't accept the connection.
> I tryed with MS IE, it's ok
> With wget it's not ok.
> Can you help me to solve the problème ?
Using --user without any other option uses the basic authentication method. Try
using --anyauth to let curl negotiate an authentication method. If that doesn't
work, then authentication is probably handled by cookies in which case take a
look at the related points at https://curl.haxx.se/docs/httpscripting.html
>>> Dan
_______________________________________________
curl-meet mailing list
curl-meet_at_cool.haxx.se
https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-meet
Received on 2018-12-19