Souci curl fichier bash

Résolu
Bonjour,

J'ai un souci avec la commande curl sous ubuntu
"curl: (3) Illegal characters found in URL"

Voici mon script :

#/bin/sh
ref='https://gestion.domain.fr/api/index.php/products/25'
curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'APIKEY: cleapi' -d '{"price": "45"}' $ref

Pourtant mon url est bonne et sans caractère spéciaux.

Merci d'avance

Configuration: Windows / Firefox 70.0

2 réponses

  • Votes
  • Date
  • Date décroissante