Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我需要将为iBeliebe php编写的curl更改为ASP CLASSIC_Curl_Asp Classic - Fatal编程技术网

我需要将为iBeliebe php编写的curl更改为ASP CLASSIC

我需要将为iBeliebe php编写的curl更改为ASP CLASSIC,curl,asp-classic,Curl,Asp Classic,下面是一个Curl函数,我需要在经典asp中执行,但我不知道如何开始。我在经典asp中查看了t并回顾了Curl,但该字段并不匹配。有人能提供帮助吗 curl -X POST \ https://api.sparkpost.com/api/v1/transmissions \ -H "Authorization: bcefxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \ -H "Content-Type: application/json" \ -d '{ "content": {

下面是一个Curl函数,我需要在经典asp中执行,但我不知道如何开始。我在经典asp中查看了t并回顾了Curl,但该字段并不匹配。有人能提供帮助吗

curl -X POST \
https://api.sparkpost.com/api/v1/transmissions \
-H "Authorization: bcefxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"content": {
  "from": "sandbox@sparkpostbox.com",
  "subject": "Thundercats are GO!!!",
  "text": "Sword of Omens, give me sight BEYOND sight"
},
"recipients": [{ "address": "info@domain.com" }]
}'

看看XMLHTTP——看到这个问题了吗?cURL函数的用途是什么?它看起来像是直接发送电子邮件,但我所知道的关于cURL的一切就是我刚刚在标签描述中读到的。如果您确实在尝试发送电子邮件,请查看asp classic。@Martha-我猜电子邮件是通过将JSON数据发布到API url来发送的,API会从那里处理它,而不是直接将数据发送到SMTP服务器-但OP需要明确是否存在这种情况。这样做的目的是因为我的服务器不允许将带有cdo的外部邮件发送到外部SMTP服务器。最后,我从来没有找到一个解决方案来移动主机帐户。