I have 3 arrays to be passed to the variables of a URL. I'll like to know how to pass them to the URL.
export default function () {
let p_code = ['P', 'Y', 'M', 'C'];
let c_flg = ['O', 'C', 'B'];
let page = ['H', 'F', 'W'];
let res = "";
for (var i = 0; i < p_code.length; i++) {
res = http.post('https://myabcdomain.com/pass/mark/myhope.jsp?p_code='+p_code[i]+'&set_id=999&crncy_code=NGN&cls_opn_flg='+c_flg[i]+'&high_tran_date_ui='+encodeURIComponent('2021-01-04T05')+'&page_size='+page[i], {
tags: { name: 'UISheetPrint' },
});
// console.log(accountNumbers[i]);
}
}