Souci curl fichier bash
Résolu
cave2180
Messages postés
425
Date d'inscription
Statut
Membre
Dernière intervention
-
cave2180 Messages postés 425 Date d'inscription Statut Membre Dernière intervention -
cave2180 Messages postés 425 Date d'inscription Statut Membre Dernière intervention -
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
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
A voir également:
- Curl: (3) illegal characters found in url
- Url - Guide
- Site de telechargement illegal - Accueil - Outils
- Aux in - Forum Audio
- Url masquée pour votre sécurité - Forum Programmation
- Comment lire un message masqué???? - Forum TV & Vidéo
La commande fonctionne dans le terminal mais pas en script...
J'ai ajouté la ligne et ça marche direct, j'ai complétement oublié le retour chario...
Merci :p