hello my friends
please help me
i need to add header to my api
loo_xmlhttp.SetRequestHeade("X-Gateway-APIKey", "6f8f3577-8a09-4757-8b16-8c7e331d4a97")
i add it in code but when run application and debug app stopped at line ↓
loo_xmlhttp.SetRequestHeade("X-Gateway-APIKey", "6f8f3577-8a09-4757-8b16-8c7e331d4a97")
//
//Create an instance of our COM object
loo_xmlhttp = Create OleObject
lole_xml_document = Create OleObject
li_rc = loo_xmlhttp.ConnectToNewObject("MSXML2.ServerXMLHTTP.6.0")
If li_rc = 0 Then //connect succeeds
loo_xmlhttp.Open ("POST",as_url, False)
ls_Auth = f_encode_any_data64(as_user+":"+as_passwd) // Base 64 Encode
//loo_xmlhttp.SetRequestHeader( "Accept", "application/json;")
loo_xmlhttp.SetRequestHeade("X-Gateway-APIKey", "6f8f3577-8a09-4757-8b16-8c7e331d4a97")
loo_xmlhttp.SetRequestHeader( "Authorization", "Basic " + ls_Auth )
loo_xmlhttp.SetRequestHeader( "Content-Type", "application/json") //content type json
loo_xmlhttp.SetRequestHeade("Cookie", "__cf_bm=ZWuqCaE3B1zB5YgpbY0IDGB7ef45PG2pI2tIM8_5xaQ-1690312019-0-AUCiGTmjDaxTaPpnjgW8l37r+8OgEdcJUEWJDSM3IT1aGrigKehPpIe5xf7/2tv9/XsRH85nW4Hqw027D+1oTWM=; visid_incap_2290886=PxelvogySAOtbSYDeEtN+lpoF2QAAAAAQUIPAAAAAACY8woWgzrJOuVpR9ZvfrGk")
loo_xmlhttp.Send(as_json_input) //Send data
//Get our response
ls_status_text = loo_xmlhttp.StatusText
ll_status_code = loo_xmlhttp.Status
end if
Great spot though!