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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -