curl / Mailing Lists / curl-meet / Single Mail


RE: Curl and Prestashop on Apache Server (OVH)

From: Jean-Christophe Voyeux <>
Date: Wed, 19 Dec 2018 12:52:54 +0000

Je viens de trouver !
I've just found !

I add " -A 'Mozilla' " then now I can access to the apis.

curl.exe -k -A "Mozilla" -u xxxxxxxxxxxxx:

Thank you for your ideas.

De : curl-meet <> de la part de Dan Fandrich <>
Envoyé : mercredi 19 décembre 2018 08:43
À :
Objet : Re: Curl and Prestashop on Apache Server (OVH)

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

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