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

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -