HTML中的自定义HTTP请求标头 [英] Custom HTTP Request headers in HTML

查看:599
本文介绍了HTML中的自定义HTTP请求标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道是否有可能在HTML中发送自定义的http REQUEST头文件,而不必使用javascript(不包括xhr包装器)。

是否可以定义他们作为头部内的元标签?或者它们可能是以某种形式定义的?

 < meta http-equip =x-something-customname = 自定义值/> 

这是有效的,但是,这是一个RESPONSE标题。我需要设置一个REQUEST标头。



我不想在窗体中设置隐藏字段,而是使用html标记实际处理原始http标头。



这可能吗?

解决方案


有人知道是否可以在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.

这篇关于HTML中的自定义HTTP请求标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆