<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=HTTP</id>
	<title>HTTP - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=HTTP"/>
	<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=HTTP&amp;action=history"/>
	<updated>2026-04-19T23:34:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://tech.uvoo.io/index.php?title=HTTP&amp;diff=176&amp;oldid=prev</id>
		<title>imported&gt;Jeremy-busk at 18:12, 28 March 2019</title>
		<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=HTTP&amp;diff=176&amp;oldid=prev"/>
		<updated>2019-03-28T18:12:59Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;# Headers&lt;br /&gt;
&lt;br /&gt;
## Cookies&lt;br /&gt;
&lt;br /&gt;
Format example using curl --cookie &amp;quot;access_token=123&amp;quot;&lt;br /&gt;
```&lt;br /&gt;
Cookie: access_token=123&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
NGINX LUA Example&lt;br /&gt;
```&lt;br /&gt;
local access_token = ngx.var.cookie_access_token&lt;br /&gt;
ngx.say(access_token)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
nginx lua raw/get_headers to extract and check header key/value pairs&lt;br /&gt;
```&lt;br /&gt;
    ngx.say(ngx.req.raw_header())&lt;br /&gt;
    local h = ngx.req.get_headers()&lt;br /&gt;
    for k, v in pairs(h) do&lt;br /&gt;
        if k == &amp;quot;numifex_token&amp;quot; then&lt;br /&gt;
            ngx.say(&amp;quot;allow&amp;quot;)&lt;br /&gt;
            ngx.say(k, &amp;quot;: &amp;quot;, v)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
## Using underscores in header&lt;br /&gt;
&lt;br /&gt;
In NGINX enable this under server by adding `underscores_in_headers off`;&lt;br /&gt;
&lt;br /&gt;
* https://github.com/ledgetech/lua-resty-http/issues/114&lt;br /&gt;
* https://stackoverflow.com/questions/22856136/why-underscores-are-forbidden-in-http-header-names - They are not forbidden. It's CGI legacy&lt;br /&gt;
* https://serverfault.com/questions/855720/how-to-prevent-haproxy-from-dropping-http-headers-with-underscores&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
If you do not explicitly set underscores_in_headers on;, nginx will silently drop HTTP headers with underscores (which are perfectly valid according to the HTTP standard). This is done in order to prevent ambiguities when mapping headers to CGI variables, as both dashes and underscores are mapped to underscores during that process.&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
http://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers&lt;br /&gt;
```&lt;br /&gt;
Syntax:	underscores_in_headers on | off;&lt;br /&gt;
Default:	&lt;br /&gt;
underscores_in_headers off;&lt;br /&gt;
Context:	http, server&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
Security&lt;/div&gt;</summary>
		<author><name>imported&gt;Jeremy-busk</name></author>
	</entry>
</feed>