I want to redirect a page and attach POST params and Custom headers to it e.g.
$data_to_post = array();
$data_to_post['CAPA_Type'] = "createPlan";
$data_to_post['CAPA_Gateway'] = "PayStack";
$headers = array();
$headers[] = "CAPA_token: xxxxxxxxxxxxxxxxxxxx";
Submitting a form dynamically from JS doesn't work, because it cannot send custom headers, AJAX is not an option as I want to open the url in browser not in the background. Is it possible to achieve this in JS or PHP? If it is, how would one go about doing it?