How can I use MSXML2.serverXMLHTTP.6.0 post data to server with classic asp like the picture as below.
Dim oHttp
Dim strResult
Set oHttp = CreateObject("MSXML2.serverXMLHTTP.6.0")
oHttp.setOption(2) = 13056
oHttp.open "POST", url, false
oHttp.setRequestHeader "SecretKey", skey
oHttp.setRequestHeader "AGENCY_ID", aid
oHttp.setRequestHeader "Content-Type", "application/json"
oHttp.send jsondata
oStr=oHttp.responseText
response.write oStr
curl --location --request POST 'https://nh.ccc.com' \
--header 'AGENCY_ID: 00000006' \
--header 'SecretKey: EEEEEEEEEEEEEEEEEEEEEEEE' \
--form 'AGENCY_ID=00000006' \
--form 'SecretKey=EEEEEEEEEEEEEEEEEEEEEEEE' \
--form 'jsonfile=@/C:/Users/kqqq/Downloads/file20210888888.json'