asp classic - Mailchimp RESTful API 3.0 HTTP Basic Auth -
i'm trying use mailchimp api version 3.0 basic auth. i'm using classic asp.
the json response always: "api key missing".
set httpreq = server.createobject("msxml2.serverxmlhttp") httpreq.open "get", "https://us4.api.mailchimp.com/3.0/", false httpreq.setrequestheader "content-type", "application/json" httpreq.setrequestheader "apikey", "xxxxxx" httpreq.send "" response.write httpreq.responsetext set httpreq = nothing
i'm sending header.
what doing wrong..?
the answer is:
httpreq.setrequestheader "authorization", "apikey xxxxxx"
Comments
Post a Comment