I have a simple href
link from some html
<a href="www.google.com">Apparently you can find things here</a>
But I want to add a http request header to the request?
Is this possible.
The HTTP header Connection is overwritten, but allowed to have duplicates and multiple values. The HTTP headers Host and Expires are overwritten and not allowed to have duplicates and multiple values. The HTTP header Date is overwritten and allowed to have duplicates but not allowed to have multiple values.
A recipient MAY combine multiple header fields with the same field name into one field-name: field-value pair, without changing the semantics of the message, by appending each subsequent field value to the combined field value in order, separated by a comma.
You don't. You can't set HTTP headers as part of URL, it's not the way it works. At best you may be able to use a browser plugin to add/set arbitrary HTTP headers, but that will depend on the browser you are using. And will be a one off test/development option.
There is no way for a page to specify HTTP request headers other than for requests made using XMLHttpRequest and fetch.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With