Avoir beaucoup trop de mal à faire fonctionner cette instruction curl de ligne cmd en script python ... help! Tentative d'utilisation d'URLLIB.Convertir la ligne de commande CURL en script Python
boucle -X POST "http://api.postmarkapp.com/email" \
-H "Accepter: application/json" \
-H "Content-Type: application/json" \
-H "X-Marque-Server-Token: abcdef-1234-46cc-b2ab-38e3a208ab2b" \
-v \
-d "{De: '[email protected]', À: 'destinataire @ email. com ', Sujet:' Postmark test ', HtmlBody:' Bonjour Cher utilisateur de cachet de la poste. '} "
you rock ... merci! – Scott
@scott pas de problème :) – Joshkunz