curl / Mailing Lists / curl-meet / Single Mail


Re: Curl and Prestashop on Apache Server (OVH)

From: Dan Fandrich <>
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 (,
> 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

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

>>> Dan
curl-meet mailing list
Received on 2018-12-19