It cannot be done - AFAIK.
However you may use for example jquery (although you can do it with plain javascript) to serialize the form and send (using AJAX) while adding your custom header.
Look at the jquery serialize
which changes an HTML FORM into form-url-encoded
values ready for POST.
UPDATE
My suggestion is to include either
- a hidden form element
- a query string parameter
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…