# Script PowerShell pour envoyer la requête POST avec curl # Format Windows PowerShell $jsonFile = Join-Path $PSScriptRoot "post_user_request.json" $url = "http://localhost/api/user/user/POST_userV2.php" Write-Host "🚀 Envoi de la requête POST..." -ForegroundColor Yellow Write-Host "📄 Fichier JSON: $jsonFile" -ForegroundColor Cyan Write-Host "🌐 URL: $url" -ForegroundColor Cyan Write-Host "" # Commande curl formatée pour Windows $curlCommand = "curl -X POST `"$url`" -H `"Content-Type: application/json`" -d `"@$jsonFile`"" Write-Host "📋 Commande curl:" -ForegroundColor Green Write-Host $curlCommand Write-Host "" # Exécuter la commande Invoke-Expression $curlCommand