I try to make a PHP function that
- set a custom header ("test: longstring"),
- redirect to an external website with a request containing the custom header
What I done :
public function myFunc() {
header("test: helloWorld");
header("Location: mysite.com");
die();
}
The redirection works but I can't find the test header in the GET request to mysite.com, why ?
NB I want to use header and not a url parameter because the string I want to send is the base64 of a signature generated by openssl_sign.