且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

HTML中的自定义HTTP请求标头

更新时间:2022-12-11 21:37:15


有人知道是否可以在HTML中发送自定义HTTP请求标头而不必使用JavaScript?


不,这是不可能的。



它是什么,您认为这是解决方案的功能需求?详细说明,那么我们可能会想出一个合适的解决方案。


Does anyone know if its possible to send out custom http REQUEST headers in HTML without having to use javascript (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.