Concern curl bash file
Solved
cave2180
Posted messages
512
Status
Member
-
cave2180 Posted messages 512 Status Member -
cave2180 Posted messages 512 Status Member -
Hello,
I have a problem with the curl command on Ubuntu
"curl: (3) Illegal characters found in URL"
Here is my 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
Yet my URL is correct and without special characters.
Thank you in advance
Configuration: Windows / Firefox 70.0
I have a problem with the curl command on Ubuntu
"curl: (3) Illegal characters found in URL"
Here is my 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
Yet my URL is correct and without special characters.
Thank you in advance
Configuration: Windows / Firefox 70.0