CURL Windows

This topic contains 0 replies, has 1 voice, and was last updated by  grebot_r 7 years, 5 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #304

    grebot_r
    Participant

    Message laissé sur le forum Pleiad le 17/10/2016

    CURL sous Windows décode mal la syntaxe JSON.
    -d ‘{“id”: “artist:6″,”nom”: “Thenew”}’
    génère une erreur et doit être remplacé par :
    -d {“””id”””:”artist:6″””,”””nom”””:”””Thenew”””}
    Remarque : Les espaces ne sont pas acceptés
    ou par :
    -d {\”id”: \”artist:6\”,\”nom\”: “Thenew\”}

    Par contre l’import de fichier @<chemin>\<fichier> ne fonctionne pas, impossible donc d’importer massivement des données.

    Il faut installer une console UNIX pour Windows : CYGWIN (32 ou 64 bits suivant son OS Windows)
    Il est impératif d’y inclure les bibliothèques CURL (surtout pas toutes car c’est très volumineux)
    Avec cette console, CURL est standard, toutes les commandes fonctionnent

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.