diff --git a/install_elog.sh b/install_elog.sh index 799dd6bab..bf3c2e20f 100644 --- a/install_elog.sh +++ b/install_elog.sh @@ -53,11 +53,12 @@ curl http://localhost:8080/demo/ || echo "Pas encore de logbook 'demo'" # Test d'insertion d'une entrée (PUT) echo "📝 Test elog.put (via curl)..." response=$(curl -s -o /dev/null -w "%{http_code}" -u robot:testpassword \ - -d "text=Hello ELOG via shell script" \ - -d "Subject=Test entry" \ - -d "Type=Note" \ - -d "Category=General" \ - "http://localhost:8080/demo/?cmd=New") + -F "Author=robot" \ + -F "Subject=Test via script" \ + -F "Category=General" \ + -F "Type=Note" \ + -F "Text=Message envoyé automatiquement depuis le script install_elog.sh" \ + "http://localhost:8080/demo/?cmd=Submit") if [ "$response" == "200" ]; then echo "✅ Insertion réussie dans le logbook demo"