Adding http request header to a a href link

HtmlHttp

Html Problem Overview


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.

Html Solutions


Solution 1 - Html

There is no way for a page to specify HTTP request headers other than for requests made using XMLHttpRequest and fetch.

Solution 2 - Html

Can you elaborate on what you are trying to do?

I don't believe it's possible to specify a request header via a link. You can send GET parameters to the target site with the following notation:

www.google.com?q=searchterm

The first GET parameter is separated from the URL by a question mark (?) after that each additional parameter should be separated with an ampersand (&) like so:

www.google.com?q=searchterm&otherparam=value&otherotherparam=value

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMore Than FiveView Question on Stackoverflow
Solution 1 - HtmlQuentinView Answer on Stackoverflow
Solution 2 - HtmlDogoferisView Answer on Stackoverflow