diff options
author | Loïc Hoguin <[email protected]> | 2016-08-29 12:39:49 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-08-29 12:40:03 +0200 |
commit | c807880f7ac73f813b2660ea81a00f7712a4e793 (patch) | |
tree | ba1d09e9b177f230665a80513b33fbd532000ce4 /archives/extend/attachments/20130317/2ee0bc92 | |
parent | b1df25a7d9cda697513650659b781b55b40898f8 (diff) | |
download | ninenines.eu-c807880f7ac73f813b2660ea81a00f7712a4e793.tar.gz ninenines.eu-c807880f7ac73f813b2660ea81a00f7712a4e793.tar.bz2 ninenines.eu-c807880f7ac73f813b2660ea81a00f7712a4e793.zip |
Add old mailing list archives
Diffstat (limited to 'archives/extend/attachments/20130317/2ee0bc92')
-rw-r--r-- | archives/extend/attachments/20130317/2ee0bc92/attachment.html | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/archives/extend/attachments/20130317/2ee0bc92/attachment.html b/archives/extend/attachments/20130317/2ee0bc92/attachment.html new file mode 100644 index 00000000..916afb32 --- /dev/null +++ b/archives/extend/attachments/20130317/2ee0bc92/attachment.html @@ -0,0 +1,54 @@ +<tt> +<html><br> +<head><br> +<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><br> +</head><br> +<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><br> +<div> Cowboy aims to use binaries, not strings, and unless there's a change in the head branch I don't have, the returned tuple has only two values, the value and the request. So it should look like something like - </div><br> +<div><br><br> +</div><br> +<div> {Value, Req2} = cowboy_req:header(<<"user-agent">>, Req)</div><br> +<div><br><br> +</div><br> +<div><br><br> +</div><br> +<div><br><br> +</div><br> +<div><br><br> +</div><br> +<span id="OLK_SRC_BODY_SECTION"><br> +<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><br> +<span style="font-weight:bold">From: </span>������ �������� <<a href="mailto:[email protected]">[email protected]</a>><br><br> +<span style="font-weight:bold">Date: </span>Sunday, March 17, 2013 9:22 AM<br><br> +<span style="font-weight:bold">To: </span>"<a href="mailto:[email protected]">[email protected]</a>" <<a href="mailto:[email protected]">[email protected]</a>><br><br> +<span style="font-weight:bold">Subject: </span>[99s-extend] cowboy header<br><br> +</div><br> +<div><br><br> +</div><br> +<div><br> +<div><br> +<div>Hello tell me how I can get for example http header "user-agent"?</div><br> +<div>I do so:</div><br> +<div> </div><br> +<div>handle(Req, State) -></div><br> +<div> </div><br> +<div>{ok, FwdIP, Req5} = cowboy_req:header("user-agent, Req)</div><br> +<div> </div><br> +<div>but in this place I get the error</div><br> +<div> </div><br> +<div> </div><br> +<div> </div><br> +<div>--</div><br> +<div>Vjacheslav Kozlov</div><br> +<div>Engineer of AEMS</div><br> +<div>Ltd. "EER-Novomichurinsk"</div><br> +<div>--</div><br> +<div><a href="http://www.ter-energo.ru">http://www.ter-energo.ru</a></div><br> +<div>+79109095144 09:00-18:00 (GMT+04:00)</div><br> +</div><br> +</div><br> +</span><br> +</body><br> +</html><br> + +</tt> |