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

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

问题描述

有谁知道是否可以在 HTML 中发送自定义 http REQUEST 标头而无需使用 javascript(无 xhr 包装器).

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" />

这可行,但是,这是一个 RESPONSE 标头.我需要设置一个 REQUEST 标头.

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

我不是在寻找在表单中设置隐藏字段,而是在寻找使用 html 标签进行的实际原始 http 标头操作.

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

这可能吗?

推荐答案

有谁知道是否可以在不使用 JavaScript 的情况下以 HTML 格式发送自定义 HTTP 请求标头?

不,这不可能.

您认为这是解决方案的功能需求是什么?详细说明一下,也许我们可以想出一个合适的解决方案.

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天全站免登陆