問題描述
有誰知道是否可以在 HTML 中發(fā)送自定義 http REQUEST 標(biāo)頭而無需使用 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).
是否可以將它們定義為頭部中的元標(biāo)記?或者它們可以在某處的形式中定義?
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 標(biāo)頭.我需要設(shè)置一個 REQUEST 標(biāo)頭.
this works, however, this is a RESPONSE header. What I need to set a REQUEST header.
我不是在尋找在表單中設(shè)置隱藏字段,而是在尋找使用 html 標(biāo)簽進(jìn)行的實際原始 http 標(biāo)頭操作.
I'm not looking for setting hidden fields in forms, but actual raw http header manipulation with html tags.
這可能嗎?
推薦答案
有誰知道是否可以在不使用 JavaScript 的情況下以 HTML 格式發(fā)送自定義 HTTP 請求標(biāo)頭?
不,這不可能.
您認(rèn)為這是解決方案的功能需求是什么?詳細(xì)說明一下,也許我們可以想出一個合適的解決方案.
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.
這篇關(guān)于HTML 中的自定義 HTTP 請求標(biāo)頭的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!