开发者

Custom HTTP Request headers in HTML

开发者 https://www.devze.com 2023-01-03 18:44 出处:网络
Does anyone know if its possible to send out custom http REQUEST headers in HTML without having to use javascr开发者_如何学运维ipt (no xhr wrapper).

Does anyone know if its possible to send out custom http REQUEST headers in HTML without having to use javascr开发者_如何学运维ipt (no xhr wrapper).

Would it be possible to define them as meta tags within the head? Or may they be defined in the form somewhere?

<meta http-equip="x-something-custom" name="custom value" />

this works, however, this is a RESPONSE header. What I need to set a REQUEST header.

I'm not looking for setting hidden fields in forms, but actual raw http header manipulation with html tags.

Is this possible?


Does anyone know if it's possible to send out custom HTTP request headers in HTML without having to use JavaScript?

No, it's not possible.

What is it, the functional requirement for which you think that this is the solution? Elaborate that, then we may be able to come up with a suitable solution.


Why do you need to set something in the header?

If it's for testing you can use a Firefox extension or a web proxy to manipulate the header.

Otherwise, it cannot be done from HTML.

0

精彩评论

暂无评论...
验证码 换一张
取 消