Custom HTTP Request headers in HTML(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 请求标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:HTML 中的自定义 HTTP 请求标头
- 为什么悬停在委托事件处理程序中不起作用? 2022-01-01
- 在不使用循环的情况下查找数字数组中的一项 2022-01-01
- 使用 iframe URL 的 jQuery UI 对话框 2022-01-01
- 从原点悬停时触发 translateY() 2022-01-01
- 是否可以将标志传递给 Gulp 以使其以不同的方式 2022-01-01
- 为什么我的页面无法在 Github 上加载? 2022-01-01
- 如何向 ipc 渲染器发送添加回调 2022-01-01
- 我不能使用 json 使用 react 向我的 web api 发出 Post 请求 2022-01-01
- 如何调试 CSS/Javascript 悬停问题 2022-01-01
- 如何显示带有换行符的文本标签? 2022-01-01