2
我有以下的“卷曲”命令Mailgun工作:转换卷曲httplib的标头
curl -s --user 'api:key-xxxxxx' \
https://api.mailgun.net/v3/sandboxyyyyyy.mailgun.org/messages \
-F from='Excited User <[email protected]>' \
-F [email protected] \
-F [email protected] \
-F subject='Hello' \
-F text='Testing some Mailgun awesomness!'
我需要使用“httplib的”在Python(!不请求)发送电子邮件与Mailgun。如何将curl命令转换为httplib.HTTPSConnection请求中使用的HTTP头('POST',URL,params,headers)?