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/2015-February/000511.html | |
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/2015-February/000511.html')
-rw-r--r-- | archives/extend/2015-February/000511.html | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/archives/extend/2015-February/000511.html b/archives/extend/2015-February/000511.html new file mode 100644 index 00000000..c3fde33d --- /dev/null +++ b/archives/extend/2015-February/000511.html @@ -0,0 +1,103 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <TITLE> [99s-extend] Body length and content-length mismatch + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Body%20length%20and%20content-length%20mismatch&In-Reply-To=%3C4E148D98-CFDB-40D4-8532-8E46C8F09DB0%40wanadoo.fr%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <style type="text/css"> + pre { + white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */ + } + </style> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="000510.html"> + <LINK REL="Next" HREF="000512.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[99s-extend] Body length and content-length mismatch</H1> + <B>Samir Sow</B> + <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Body%20length%20and%20content-length%20mismatch&In-Reply-To=%3C4E148D98-CFDB-40D4-8532-8E46C8F09DB0%40wanadoo.fr%3E" + TITLE="[99s-extend] Body length and content-length mismatch">samset at wanadoo.fr + </A><BR> + <I>Fri Feb 27 18:07:08 CET 2015</I> + <P><UL> + <LI>Previous message: <A HREF="000510.html">[99s-extend] callbacks for additional methods +</A></li> + <LI>Next message: <A HREF="000512.html">[99s-extend] Body length and content-length mismatch +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#511">[ date ]</a> + <a href="thread.html#511">[ thread ]</a> + <a href="subject.html#511">[ subject ]</a> + <a href="author.html#511">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Hi, + +I’m facing an issue with the cowboy_req:body call. + +The header show a length of 2 while the body itself is a binary string which has a size greater than 2 for sure. +Trying to use cowboy_req:body with the length option does not make any difference. + +How can i retrieve the data ? +Any clue ? + +Thank you + +{ok,{<<"basic">>,{<<«<A HREF="https://lists.ninenines.eu/listinfo/extend">xxxxx at xxxxxx</A>">>,<<«xxxxxxx">>}}, + {http_req, + {sslsocket, + {gen_tcp,#Port<0.13250>,tls_connection,<0.298.0>}, + <0.407.0>}, + ranch_ssl,keepalive,<0.408.0>,<<"POST">>,'HTTP/1.1', + {{xxxxxxxxx},16220}, + <<«xxxx">>,undefined,xxxx,<<«xxxxx">>,undefined, + <<>>,undefined, + [{res_1,<<«xxxx">>}], + [{<<"content-type">>,<<"application/json">>}, + {<<"content-length">>,<<"2">>}, + {<<"te">>,<<>>}, + {<<"host">>,<<«xxxxx">>}, + {<<"authorization">>, + <<"Basic xxxxxxxxxxxxxx">>}, + {<<"connection">>,<<"keep-alive">>}], + [{<<"authorization">>, + {<<"basic">>,{<<«xxxxxx">>,<<«xxxxxx">>}}}, + {<<"connection">>,[<<"keep-alive">>]}], + undefined,[],waiting, + <<"{\"login\":\»<A HREF="https://lists.ninenines.eu/listinfo/extend">xxxx at xxxxxx</A>\",\»xxxx\":\»xxxx\"}{\"login\":\»<A HREF="https://lists.ninenines.eu/listinfo/extend">xxxx at xxxx</A>\",\»xxxx\":\»xxxxx\"}">>, + undefined,false,waiting, + [{<<"Access-Control-Allow-Credentials">>,<<"true">>}, + {<<"Access-Control-Allow-Origin">>, + <<"<A HREF="http://xxxxxxxxx">http://xxxxxxxxx</A>">>}], + <<>>,undefined}} +Samir + + +</PRE> + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000510.html">[99s-extend] callbacks for additional methods +</A></li> + <LI>Next message: <A HREF="000512.html">[99s-extend] Body length and content-length mismatch +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#511">[ date ]</a> + <a href="thread.html#511">[ thread ]</a> + <a href="subject.html#511">[ subject ]</a> + <a href="author.html#511">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend +mailing list</a><br> +</body></html> |