summaryrefslogtreecommitdiffstats
path: root/archives/extend/2015-February
diff options
context:
space:
mode:
Diffstat (limited to 'archives/extend/2015-February')
-rw-r--r--archives/extend/2015-February/000510.html83
-rw-r--r--archives/extend/2015-February/000511.html103
-rw-r--r--archives/extend/2015-February/000512.html123
-rw-r--r--archives/extend/2015-February/000513.html130
-rw-r--r--archives/extend/2015-February/author.html67
-rw-r--r--archives/extend/2015-February/date.html67
-rw-r--r--archives/extend/2015-February/index.html75
-rw-r--r--archives/extend/2015-February/subject.html67
-rw-r--r--archives/extend/2015-February/thread.html75
9 files changed, 790 insertions, 0 deletions
diff --git a/archives/extend/2015-February/000510.html b/archives/extend/2015-February/000510.html
new file mode 100644
index 00000000..2f81ecde
--- /dev/null
+++ b/archives/extend/2015-February/000510.html
@@ -0,0 +1,83 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [99s-extend] callbacks for additional methods
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20callbacks%20for%20additional%20methods&In-Reply-To=%3C1424040658.19383.6.camel%40gmail.com%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="Next" HREF="000511.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[99s-extend] callbacks for additional methods</H1>
+ <B>Paul Dickson</B>
+ <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20callbacks%20for%20additional%20methods&In-Reply-To=%3C1424040658.19383.6.camel%40gmail.com%3E"
+ TITLE="[99s-extend] callbacks for additional methods">pdtwonotes at gmail.com
+ </A><BR>
+ <I>Sun Feb 15 23:50:58 CET 2015</I>
+ <P><UL>
+
+ <LI>Next message: <A HREF="000511.html">[99s-extend] Body length and content-length mismatch
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#510">[ date ]</a>
+ <a href="thread.html#510">[ thread ]</a>
+ <a href="subject.html#510">[ subject ]</a>
+ <a href="author.html#510">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>I am writing a CalDAV handler, which is a type of WebDAV server. CalDAV
+defines a bunch of
+additional methods beyond what a typical web browser would use, such as
+REPORT and PROPFIND.
+
+I have written the allowed_methods and known_methods callbacks to report
+that all these methods
+are acceptable. My content_types_provided has an entry for
+&quot;application/xml&quot;, which is how these
+extra methods turn up.
+
+When I connect to my server using the calendar function of Evolution,
+one of the first things it does
+is a REPORT method, which is sort of a query. This gets as far as
+content_types_provided, but after
+that it does not call the function I identified in
+content_types_provided.
+
+What is the best way to handle the non-standard methods that do not have
+defined callbacks?
+
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: &lt;<A HREF="http://lists.ninenines.eu/archives/extend/attachments/20150215/9d2f5de1/attachment.html">http://lists.ninenines.eu/archives/extend/attachments/20150215/9d2f5de1/attachment.html</A>&gt;
+</PRE>
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+
+ <LI>Next message: <A HREF="000511.html">[99s-extend] Body length and content-length mismatch
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#510">[ date ]</a>
+ <a href="thread.html#510">[ thread ]</a>
+ <a href="subject.html#510">[ subject ]</a>
+ <a href="author.html#510">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend
+mailing list</a><br>
+</body></html>
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&#8217;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,{&lt;&lt;&quot;basic&quot;&gt;&gt;,{&lt;&lt;&#171;<A HREF="https://lists.ninenines.eu/listinfo/extend">xxxxx at xxxxxx</A>&quot;&gt;&gt;,&lt;&lt;&#171;xxxxxxx&quot;&gt;&gt;}},
+ {http_req,
+ {sslsocket,
+ {gen_tcp,#Port&lt;0.13250&gt;,tls_connection,&lt;0.298.0&gt;},
+ &lt;0.407.0&gt;},
+ ranch_ssl,keepalive,&lt;0.408.0&gt;,&lt;&lt;&quot;POST&quot;&gt;&gt;,'HTTP/1.1',
+ {{xxxxxxxxx},16220},
+ &lt;&lt;&#171;xxxx&quot;&gt;&gt;,undefined,xxxx,&lt;&lt;&#171;xxxxx&quot;&gt;&gt;,undefined,
+ &lt;&lt;&gt;&gt;,undefined,
+ [{res_1,&lt;&lt;&#171;xxxx&quot;&gt;&gt;}],
+ [{&lt;&lt;&quot;content-type&quot;&gt;&gt;,&lt;&lt;&quot;application/json&quot;&gt;&gt;},
+ {&lt;&lt;&quot;content-length&quot;&gt;&gt;,&lt;&lt;&quot;2&quot;&gt;&gt;},
+ {&lt;&lt;&quot;te&quot;&gt;&gt;,&lt;&lt;&gt;&gt;},
+ {&lt;&lt;&quot;host&quot;&gt;&gt;,&lt;&lt;&#171;xxxxx&quot;&gt;&gt;},
+ {&lt;&lt;&quot;authorization&quot;&gt;&gt;,
+ &lt;&lt;&quot;Basic xxxxxxxxxxxxxx&quot;&gt;&gt;},
+ {&lt;&lt;&quot;connection&quot;&gt;&gt;,&lt;&lt;&quot;keep-alive&quot;&gt;&gt;}],
+ [{&lt;&lt;&quot;authorization&quot;&gt;&gt;,
+ {&lt;&lt;&quot;basic&quot;&gt;&gt;,{&lt;&lt;&#171;xxxxxx&quot;&gt;&gt;,&lt;&lt;&#171;xxxxxx&quot;&gt;&gt;}}},
+ {&lt;&lt;&quot;connection&quot;&gt;&gt;,[&lt;&lt;&quot;keep-alive&quot;&gt;&gt;]}],
+ undefined,[],waiting,
+ &lt;&lt;&quot;{\&quot;login\&quot;:\&#187;<A HREF="https://lists.ninenines.eu/listinfo/extend">xxxx at xxxxxx</A>\&quot;,\&#187;xxxx\&quot;:\&#187;xxxx\&quot;}{\&quot;login\&quot;:\&#187;<A HREF="https://lists.ninenines.eu/listinfo/extend">xxxx at xxxx</A>\&quot;,\&#187;xxxx\&quot;:\&#187;xxxxx\&quot;}&quot;&gt;&gt;,
+ undefined,false,waiting,
+ [{&lt;&lt;&quot;Access-Control-Allow-Credentials&quot;&gt;&gt;,&lt;&lt;&quot;true&quot;&gt;&gt;},
+ {&lt;&lt;&quot;Access-Control-Allow-Origin&quot;&gt;&gt;,
+ &lt;&lt;&quot;<A HREF="http://xxxxxxxxx">http://xxxxxxxxx</A>&quot;&gt;&gt;}],
+ &lt;&lt;&gt;&gt;,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>
diff --git a/archives/extend/2015-February/000512.html b/archives/extend/2015-February/000512.html
new file mode 100644
index 00000000..f40595c2
--- /dev/null
+++ b/archives/extend/2015-February/000512.html
@@ -0,0 +1,123 @@
+<!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=%3C54F0A54E.2010205%40ninenines.eu%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="000511.html">
+ <LINK REL="Next" HREF="000513.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[99s-extend] Body length and content-length mismatch</H1>
+ <B>Lo&#239;c Hoguin</B>
+ <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Body%20length%20and%20content-length%20mismatch&In-Reply-To=%3C54F0A54E.2010205%40ninenines.eu%3E"
+ TITLE="[99s-extend] Body length and content-length mismatch">essen at ninenines.eu
+ </A><BR>
+ <I>Fri Feb 27 18:11:42 CET 2015</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="000511.html">[99s-extend] Body length and content-length mismatch
+</A></li>
+ <LI>Next message: <A HREF="000513.html">[99s-extend] Body length and content-length mismatch
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#512">[ date ]</a>
+ <a href="thread.html#512">[ thread ]</a>
+ <a href="subject.html#512">[ subject ]</a>
+ <a href="author.html#512">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>It looks like the client is telling you BS.
+
+On 02/27/2015 06:07 PM, Samir Sow wrote:
+&gt;<i> Hi,
+</I>&gt;<i>
+</I>&gt;<i> I&#8217;m facing an issue with the cowboy_req:body call.
+</I>&gt;<i>
+</I>&gt;<i> The header show a length of 2 while the body itself is a binary string which has a size greater than 2 for sure.
+</I>&gt;<i> Trying to use cowboy_req:body with the length option does not make any difference.
+</I>&gt;<i>
+</I>&gt;<i> How can i retrieve the data ?
+</I>&gt;<i> Any clue ?
+</I>&gt;<i>
+</I>&gt;<i> Thank you
+</I>&gt;<i>
+</I>&gt;<i> {ok,{&lt;&lt;&quot;basic&quot;&gt;&gt;,{&lt;&lt;&#171;<A HREF="https://lists.ninenines.eu/listinfo/extend">xxxxx at xxxxxx</A>&quot;&gt;&gt;,&lt;&lt;&#171;xxxxxxx&quot;&gt;&gt;}},
+</I>&gt;<i> {http_req,
+</I>&gt;<i> {sslsocket,
+</I>&gt;<i> {gen_tcp,#Port&lt;0.13250&gt;,tls_connection,&lt;0.298.0&gt;},
+</I>&gt;<i> &lt;0.407.0&gt;},
+</I>&gt;<i> ranch_ssl,keepalive,&lt;0.408.0&gt;,&lt;&lt;&quot;POST&quot;&gt;&gt;,'HTTP/1.1',
+</I>&gt;<i> {{xxxxxxxxx},16220},
+</I>&gt;<i> &lt;&lt;&#171;xxxx&quot;&gt;&gt;,undefined,xxxx,&lt;&lt;&#171;xxxxx&quot;&gt;&gt;,undefined,
+</I>&gt;<i> &lt;&lt;&gt;&gt;,undefined,
+</I>&gt;<i> [{res_1,&lt;&lt;&#171;xxxx&quot;&gt;&gt;}],
+</I>&gt;<i> [{&lt;&lt;&quot;content-type&quot;&gt;&gt;,&lt;&lt;&quot;application/json&quot;&gt;&gt;},
+</I>&gt;<i> {&lt;&lt;&quot;content-length&quot;&gt;&gt;,&lt;&lt;&quot;2&quot;&gt;&gt;},
+</I>&gt;<i> {&lt;&lt;&quot;te&quot;&gt;&gt;,&lt;&lt;&gt;&gt;},
+</I>&gt;<i> {&lt;&lt;&quot;host&quot;&gt;&gt;,&lt;&lt;&#171;xxxxx&quot;&gt;&gt;},
+</I>&gt;<i> {&lt;&lt;&quot;authorization&quot;&gt;&gt;,
+</I>&gt;<i> &lt;&lt;&quot;Basic xxxxxxxxxxxxxx&quot;&gt;&gt;},
+</I>&gt;<i> {&lt;&lt;&quot;connection&quot;&gt;&gt;,&lt;&lt;&quot;keep-alive&quot;&gt;&gt;}],
+</I>&gt;<i> [{&lt;&lt;&quot;authorization&quot;&gt;&gt;,
+</I>&gt;<i> {&lt;&lt;&quot;basic&quot;&gt;&gt;,{&lt;&lt;&#171;xxxxxx&quot;&gt;&gt;,&lt;&lt;&#171;xxxxxx&quot;&gt;&gt;}}},
+</I>&gt;<i> {&lt;&lt;&quot;connection&quot;&gt;&gt;,[&lt;&lt;&quot;keep-alive&quot;&gt;&gt;]}],
+</I>&gt;<i> undefined,[],waiting,
+</I>&gt;<i> &lt;&lt;&quot;{\&quot;login\&quot;:\&#187;<A HREF="https://lists.ninenines.eu/listinfo/extend">xxxx at xxxxxx</A>\&quot;,\&#187;xxxx\&quot;:\&#187;xxxx\&quot;}{\&quot;login\&quot;:\&#187;<A HREF="https://lists.ninenines.eu/listinfo/extend">xxxx at xxxx</A>\&quot;,\&#187;xxxx\&quot;:\&#187;xxxxx\&quot;}&quot;&gt;&gt;,
+</I>
+And looking at this (the buffer of already received data, presumably
+your whole body, it looks like you receive 2 things. Perhaps the client
+gives you the count of things instead of the length?
+
+Either way if the client provides a wrong content-type you should reject
+the connection.
+
+&gt;<i> undefined,false,waiting,
+</I>&gt;<i> [{&lt;&lt;&quot;Access-Control-Allow-Credentials&quot;&gt;&gt;,&lt;&lt;&quot;true&quot;&gt;&gt;},
+</I>&gt;<i> {&lt;&lt;&quot;Access-Control-Allow-Origin&quot;&gt;&gt;,
+</I>&gt;<i> &lt;&lt;&quot;<A HREF="http://xxxxxxxxx">http://xxxxxxxxx</A>&quot;&gt;&gt;}],
+</I>&gt;<i> &lt;&lt;&gt;&gt;,undefined}}
+</I>&gt;<i> Samir
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i> _______________________________________________
+</I>&gt;<i> Extend mailing list
+</I>&gt;<i> <A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A>
+</I>&gt;<i> <A HREF="https://lists.ninenines.eu/listinfo/extend">https://lists.ninenines.eu/listinfo/extend</A>
+</I>&gt;<i>
+</I>
+--
+Lo&#239;c Hoguin
+<A HREF="http://ninenines.eu">http://ninenines.eu</A>
+</PRE>
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="000511.html">[99s-extend] Body length and content-length mismatch
+</A></li>
+ <LI>Next message: <A HREF="000513.html">[99s-extend] Body length and content-length mismatch
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#512">[ date ]</a>
+ <a href="thread.html#512">[ thread ]</a>
+ <a href="subject.html#512">[ subject ]</a>
+ <a href="author.html#512">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend
+mailing list</a><br>
+</body></html>
diff --git a/archives/extend/2015-February/000513.html b/archives/extend/2015-February/000513.html
new file mode 100644
index 00000000..d8937c71
--- /dev/null
+++ b/archives/extend/2015-February/000513.html
@@ -0,0 +1,130 @@
+<!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=%3C62EAECE1-086A-4788-845A-11A1BC6C16AA%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="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=%3C62EAECE1-086A-4788-845A-11A1BC6C16AA%40wanadoo.fr%3E"
+ TITLE="[99s-extend] Body length and content-length mismatch">samset at wanadoo.fr
+ </A><BR>
+ <I>Fri Feb 27 18:33:56 CET 2015</I>
+ <P><UL>
+ <LI>Previous 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#513">[ date ]</a>
+ <a href="thread.html#513">[ thread ]</a>
+ <a href="subject.html#513">[ subject ]</a>
+ <a href="author.html#513">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>Yes.
+i&#8217;m using httpc. It does not like wrapping a binary string inside a [].
+I&#8217;ll fix my body.
+
+Thank you.
+
+Sincerely.
+
+
+
+&gt;<i> On 27 f&#233;vr. 2015, at 18:11, Lo&#239;c Hoguin &lt;<A HREF="https://lists.ninenines.eu/listinfo/extend">essen at ninenines.eu</A>&gt; wrote:
+</I>&gt;<i>
+</I>&gt;<i> It looks like the client is telling you BS.
+</I>&gt;<i>
+</I>&gt;<i> On 02/27/2015 06:07 PM, Samir Sow wrote:
+</I>&gt;&gt;<i> Hi,
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> I&#8217;m facing an issue with the cowboy_req:body call.
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> The header show a length of 2 while the body itself is a binary string which has a size greater than 2 for sure.
+</I>&gt;&gt;<i> Trying to use cowboy_req:body with the length option does not make any difference.
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> How can i retrieve the data ?
+</I>&gt;&gt;<i> Any clue ?
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> Thank you
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> {ok,{&lt;&lt;&quot;basic&quot;&gt;&gt;,{&lt;&lt;&#171;<A HREF="https://lists.ninenines.eu/listinfo/extend">xxxxx at xxxxxx</A>&quot;&gt;&gt;,&lt;&lt;&#171;xxxxxxx&quot;&gt;&gt;}},
+</I>&gt;&gt;<i> {http_req,
+</I>&gt;&gt;<i> {sslsocket,
+</I>&gt;&gt;<i> {gen_tcp,#Port&lt;0.13250&gt;,tls_connection,&lt;0.298.0&gt;},
+</I>&gt;&gt;<i> &lt;0.407.0&gt;},
+</I>&gt;&gt;<i> ranch_ssl,keepalive,&lt;0.408.0&gt;,&lt;&lt;&quot;POST&quot;&gt;&gt;,'HTTP/1.1',
+</I>&gt;&gt;<i> {{xxxxxxxxx},16220},
+</I>&gt;&gt;<i> &lt;&lt;&#171;xxxx&quot;&gt;&gt;,undefined,xxxx,&lt;&lt;&#171;xxxxx&quot;&gt;&gt;,undefined,
+</I>&gt;&gt;<i> &lt;&lt;&gt;&gt;,undefined,
+</I>&gt;&gt;<i> [{res_1,&lt;&lt;&#171;xxxx&quot;&gt;&gt;}],
+</I>&gt;&gt;<i> [{&lt;&lt;&quot;content-type&quot;&gt;&gt;,&lt;&lt;&quot;application/json&quot;&gt;&gt;},
+</I>&gt;&gt;<i> {&lt;&lt;&quot;content-length&quot;&gt;&gt;,&lt;&lt;&quot;2&quot;&gt;&gt;},
+</I>&gt;&gt;<i> {&lt;&lt;&quot;te&quot;&gt;&gt;,&lt;&lt;&gt;&gt;},
+</I>&gt;&gt;<i> {&lt;&lt;&quot;host&quot;&gt;&gt;,&lt;&lt;&#171;xxxxx&quot;&gt;&gt;},
+</I>&gt;&gt;<i> {&lt;&lt;&quot;authorization&quot;&gt;&gt;,
+</I>&gt;&gt;<i> &lt;&lt;&quot;Basic xxxxxxxxxxxxxx&quot;&gt;&gt;},
+</I>&gt;&gt;<i> {&lt;&lt;&quot;connection&quot;&gt;&gt;,&lt;&lt;&quot;keep-alive&quot;&gt;&gt;}],
+</I>&gt;&gt;<i> [{&lt;&lt;&quot;authorization&quot;&gt;&gt;,
+</I>&gt;&gt;<i> {&lt;&lt;&quot;basic&quot;&gt;&gt;,{&lt;&lt;&#171;xxxxxx&quot;&gt;&gt;,&lt;&lt;&#171;xxxxxx&quot;&gt;&gt;}}},
+</I>&gt;&gt;<i> {&lt;&lt;&quot;connection&quot;&gt;&gt;,[&lt;&lt;&quot;keep-alive&quot;&gt;&gt;]}],
+</I>&gt;&gt;<i> undefined,[],waiting,
+</I>&gt;&gt;<i> &lt;&lt;&quot;{\&quot;login\&quot;:\&#187;<A HREF="https://lists.ninenines.eu/listinfo/extend">xxxx at xxxxxx</A>\&quot;,\&#187;xxxx\&quot;:\&#187;xxxx\&quot;}{\&quot;login\&quot;:\&#187;<A HREF="https://lists.ninenines.eu/listinfo/extend">xxxx at xxxx</A>\&quot;,\&#187;xxxx\&quot;:\&#187;xxxxx\&quot;}&quot;&gt;&gt;,
+</I>&gt;<i>
+</I>&gt;<i> And looking at this (the buffer of already received data, presumably your whole body, it looks like you receive 2 things. Perhaps the client gives you the count of things instead of the length?
+</I>&gt;<i>
+</I>&gt;<i> Either way if the client provides a wrong content-type you should reject the connection.
+</I>&gt;<i>
+</I>&gt;&gt;<i> undefined,false,waiting,
+</I>&gt;&gt;<i> [{&lt;&lt;&quot;Access-Control-Allow-Credentials&quot;&gt;&gt;,&lt;&lt;&quot;true&quot;&gt;&gt;},
+</I>&gt;&gt;<i> {&lt;&lt;&quot;Access-Control-Allow-Origin&quot;&gt;&gt;,
+</I>&gt;&gt;<i> &lt;&lt;&quot;<A HREF="http://xxxxxxxxx">http://xxxxxxxxx</A>&quot;&gt;&gt;}],
+</I>&gt;&gt;<i> &lt;&lt;&gt;&gt;,undefined}}
+</I>&gt;&gt;<i> Samir
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> _______________________________________________
+</I>&gt;&gt;<i> Extend mailing list
+</I>&gt;&gt;<i> <A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A>
+</I>&gt;&gt;<i> <A HREF="https://lists.ninenines.eu/listinfo/extend">https://lists.ninenines.eu/listinfo/extend</A>
+</I>&gt;&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i> --
+</I>&gt;<i> Lo&#239;c Hoguin
+</I>&gt;<i> <A HREF="http://ninenines.eu">http://ninenines.eu</A>
+</I>
+</PRE>
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous 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#513">[ date ]</a>
+ <a href="thread.html#513">[ thread ]</a>
+ <a href="subject.html#513">[ subject ]</a>
+ <a href="author.html#513">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend
+mailing list</a><br>
+</body></html>
diff --git a/archives/extend/2015-February/author.html b/archives/extend/2015-February/author.html
new file mode 100644
index 00000000..fd99291d
--- /dev/null
+++ b/archives/extend/2015-February/author.html
@@ -0,0 +1,67 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<HTML>
+ <HEAD>
+ <title>The Extend February 2015 Archive by author</title>
+ <META NAME="robots" CONTENT="noindex,follow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <a name="start"></A>
+ <h1>February 2015 Archives by author</h1>
+ <ul>
+ <li> <b>Messages sorted by:</b>
+ <a href="thread.html#start">[ thread ]</a>
+ <a href="subject.html#start">[ subject ]</a>
+
+ <a href="date.html#start">[ date ]</a>
+
+ <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list...
+ </a></b></li>
+ </ul>
+ <p><b>Starting:</b> <i>Sun Feb 15 23:50:58 CET 2015</i><br>
+ <b>Ending:</b> <i>Fri Feb 27 18:33:56 CET 2015</i><br>
+ <b>Messages:</b> 4<p>
+ <ul>
+
+<LI><A HREF="000510.html">[99s-extend] callbacks for additional methods
+</A><A NAME="510">&nbsp;</A>
+<I>Paul Dickson
+</I>
+
+<LI><A HREF="000512.html">[99s-extend] Body length and content-length mismatch
+</A><A NAME="512">&nbsp;</A>
+<I>Lo&#239;c Hoguin
+</I>
+
+<LI><A HREF="000511.html">[99s-extend] Body length and content-length mismatch
+</A><A NAME="511">&nbsp;</A>
+<I>Samir Sow
+</I>
+
+<LI><A HREF="000513.html">[99s-extend] Body length and content-length mismatch
+</A><A NAME="513">&nbsp;</A>
+<I>Samir Sow
+</I>
+
+ </ul>
+ <p>
+ <a name="end"><b>Last message date:</b></a>
+ <i>Fri Feb 27 18:33:56 CET 2015</i><br>
+ <b>Archived on:</b> <i>Fri Feb 27 18:33:54 CET 2015</i>
+ <p>
+ <ul>
+ <li> <b>Messages sorted by:</b>
+ <a href="thread.html#start">[ thread ]</a>
+ <a href="subject.html#start">[ subject ]</a>
+
+ <a href="date.html#start">[ date ]</a>
+ <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list...
+ </a></b></li>
+ </ul>
+ <p>
+ <hr>
+ <i>This archive was generated by
+ Pipermail 0.09 (Mailman edition).</i>
+ </BODY>
+</HTML>
+
diff --git a/archives/extend/2015-February/date.html b/archives/extend/2015-February/date.html
new file mode 100644
index 00000000..1b5a82b3
--- /dev/null
+++ b/archives/extend/2015-February/date.html
@@ -0,0 +1,67 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<HTML>
+ <HEAD>
+ <title>The Extend February 2015 Archive by date</title>
+ <META NAME="robots" CONTENT="noindex,follow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <a name="start"></A>
+ <h1>February 2015 Archives by date</h1>
+ <ul>
+ <li> <b>Messages sorted by:</b>
+ <a href="thread.html#start">[ thread ]</a>
+ <a href="subject.html#start">[ subject ]</a>
+ <a href="author.html#start">[ author ]</a>
+
+
+ <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list...
+ </a></b></li>
+ </ul>
+ <p><b>Starting:</b> <i>Sun Feb 15 23:50:58 CET 2015</i><br>
+ <b>Ending:</b> <i>Fri Feb 27 18:33:56 CET 2015</i><br>
+ <b>Messages:</b> 4<p>
+ <ul>
+
+<LI><A HREF="000510.html">[99s-extend] callbacks for additional methods
+</A><A NAME="510">&nbsp;</A>
+<I>Paul Dickson
+</I>
+
+<LI><A HREF="000511.html">[99s-extend] Body length and content-length mismatch
+</A><A NAME="511">&nbsp;</A>
+<I>Samir Sow
+</I>
+
+<LI><A HREF="000512.html">[99s-extend] Body length and content-length mismatch
+</A><A NAME="512">&nbsp;</A>
+<I>Lo&#239;c Hoguin
+</I>
+
+<LI><A HREF="000513.html">[99s-extend] Body length and content-length mismatch
+</A><A NAME="513">&nbsp;</A>
+<I>Samir Sow
+</I>
+
+ </ul>
+ <p>
+ <a name="end"><b>Last message date:</b></a>
+ <i>Fri Feb 27 18:33:56 CET 2015</i><br>
+ <b>Archived on:</b> <i>Fri Feb 27 18:33:54 CET 2015</i>
+ <p>
+ <ul>
+ <li> <b>Messages sorted by:</b>
+ <a href="thread.html#start">[ thread ]</a>
+ <a href="subject.html#start">[ subject ]</a>
+ <a href="author.html#start">[ author ]</a>
+
+ <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list...
+ </a></b></li>
+ </ul>
+ <p>
+ <hr>
+ <i>This archive was generated by
+ Pipermail 0.09 (Mailman edition).</i>
+ </BODY>
+</HTML>
+
diff --git a/archives/extend/2015-February/index.html b/archives/extend/2015-February/index.html
new file mode 100644
index 00000000..2c70907f
--- /dev/null
+++ b/archives/extend/2015-February/index.html
@@ -0,0 +1,75 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<HTML>
+ <HEAD>
+ <title>The Extend February 2015 Archive by thread</title>
+ <META NAME="robots" CONTENT="noindex,follow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <a name="start"></A>
+ <h1>February 2015 Archives by thread</h1>
+ <ul>
+ <li> <b>Messages sorted by:</b>
+
+ <a href="subject.html#start">[ subject ]</a>
+ <a href="author.html#start">[ author ]</a>
+ <a href="date.html#start">[ date ]</a>
+
+ <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list...
+ </a></b></li>
+ </ul>
+ <p><b>Starting:</b> <i>Sun Feb 15 23:50:58 CET 2015</i><br>
+ <b>Ending:</b> <i>Fri Feb 27 18:33:56 CET 2015</i><br>
+ <b>Messages:</b> 4<p>
+ <ul>
+
+<!--0 01424040658.510- -->
+<LI><A HREF="000510.html">[99s-extend] callbacks for additional methods
+</A><A NAME="510">&nbsp;</A>
+<I>Paul Dickson
+</I>
+
+<!--0 01425056828.511- -->
+<LI><A HREF="000511.html">[99s-extend] Body length and content-length mismatch
+</A><A NAME="511">&nbsp;</A>
+<I>Samir Sow
+</I>
+
+<UL>
+<!--1 01425056828.511-01425057102.512- -->
+<LI><A HREF="000512.html">[99s-extend] Body length and content-length mismatch
+</A><A NAME="512">&nbsp;</A>
+<I>Lo&#239;c Hoguin
+</I>
+
+<UL>
+<!--2 01425056828.511-01425057102.512-01425058436.513- -->
+<LI><A HREF="000513.html">[99s-extend] Body length and content-length mismatch
+</A><A NAME="513">&nbsp;</A>
+<I>Samir Sow
+</I>
+
+</UL>
+</UL>
+ </ul>
+ <p>
+ <a name="end"><b>Last message date:</b></a>
+ <i>Fri Feb 27 18:33:56 CET 2015</i><br>
+ <b>Archived on:</b> <i>Fri Feb 27 18:33:54 CET 2015</i>
+ <p>
+ <ul>
+ <li> <b>Messages sorted by:</b>
+
+ <a href="subject.html#start">[ subject ]</a>
+ <a href="author.html#start">[ author ]</a>
+ <a href="date.html#start">[ date ]</a>
+ <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list...
+ </a></b></li>
+ </ul>
+ <p>
+ <hr>
+ <i>This archive was generated by
+ Pipermail 0.09 (Mailman edition).</i>
+ </BODY>
+</HTML>
+
diff --git a/archives/extend/2015-February/subject.html b/archives/extend/2015-February/subject.html
new file mode 100644
index 00000000..878baabb
--- /dev/null
+++ b/archives/extend/2015-February/subject.html
@@ -0,0 +1,67 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<HTML>
+ <HEAD>
+ <title>The Extend February 2015 Archive by subject</title>
+ <META NAME="robots" CONTENT="noindex,follow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <a name="start"></A>
+ <h1>February 2015 Archives by subject</h1>
+ <ul>
+ <li> <b>Messages sorted by:</b>
+ <a href="thread.html#start">[ thread ]</a>
+
+ <a href="author.html#start">[ author ]</a>
+ <a href="date.html#start">[ date ]</a>
+
+ <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list...
+ </a></b></li>
+ </ul>
+ <p><b>Starting:</b> <i>Sun Feb 15 23:50:58 CET 2015</i><br>
+ <b>Ending:</b> <i>Fri Feb 27 18:33:56 CET 2015</i><br>
+ <b>Messages:</b> 4<p>
+ <ul>
+
+<LI><A HREF="000511.html">[99s-extend] Body length and content-length mismatch
+</A><A NAME="511">&nbsp;</A>
+<I>Samir Sow
+</I>
+
+<LI><A HREF="000512.html">[99s-extend] Body length and content-length mismatch
+</A><A NAME="512">&nbsp;</A>
+<I>Lo&#239;c Hoguin
+</I>
+
+<LI><A HREF="000513.html">[99s-extend] Body length and content-length mismatch
+</A><A NAME="513">&nbsp;</A>
+<I>Samir Sow
+</I>
+
+<LI><A HREF="000510.html">[99s-extend] callbacks for additional methods
+</A><A NAME="510">&nbsp;</A>
+<I>Paul Dickson
+</I>
+
+ </ul>
+ <p>
+ <a name="end"><b>Last message date:</b></a>
+ <i>Fri Feb 27 18:33:56 CET 2015</i><br>
+ <b>Archived on:</b> <i>Fri Feb 27 18:33:54 CET 2015</i>
+ <p>
+ <ul>
+ <li> <b>Messages sorted by:</b>
+ <a href="thread.html#start">[ thread ]</a>
+
+ <a href="author.html#start">[ author ]</a>
+ <a href="date.html#start">[ date ]</a>
+ <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list...
+ </a></b></li>
+ </ul>
+ <p>
+ <hr>
+ <i>This archive was generated by
+ Pipermail 0.09 (Mailman edition).</i>
+ </BODY>
+</HTML>
+
diff --git a/archives/extend/2015-February/thread.html b/archives/extend/2015-February/thread.html
new file mode 100644
index 00000000..2c70907f
--- /dev/null
+++ b/archives/extend/2015-February/thread.html
@@ -0,0 +1,75 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<HTML>
+ <HEAD>
+ <title>The Extend February 2015 Archive by thread</title>
+ <META NAME="robots" CONTENT="noindex,follow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <a name="start"></A>
+ <h1>February 2015 Archives by thread</h1>
+ <ul>
+ <li> <b>Messages sorted by:</b>
+
+ <a href="subject.html#start">[ subject ]</a>
+ <a href="author.html#start">[ author ]</a>
+ <a href="date.html#start">[ date ]</a>
+
+ <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list...
+ </a></b></li>
+ </ul>
+ <p><b>Starting:</b> <i>Sun Feb 15 23:50:58 CET 2015</i><br>
+ <b>Ending:</b> <i>Fri Feb 27 18:33:56 CET 2015</i><br>
+ <b>Messages:</b> 4<p>
+ <ul>
+
+<!--0 01424040658.510- -->
+<LI><A HREF="000510.html">[99s-extend] callbacks for additional methods
+</A><A NAME="510">&nbsp;</A>
+<I>Paul Dickson
+</I>
+
+<!--0 01425056828.511- -->
+<LI><A HREF="000511.html">[99s-extend] Body length and content-length mismatch
+</A><A NAME="511">&nbsp;</A>
+<I>Samir Sow
+</I>
+
+<UL>
+<!--1 01425056828.511-01425057102.512- -->
+<LI><A HREF="000512.html">[99s-extend] Body length and content-length mismatch
+</A><A NAME="512">&nbsp;</A>
+<I>Lo&#239;c Hoguin
+</I>
+
+<UL>
+<!--2 01425056828.511-01425057102.512-01425058436.513- -->
+<LI><A HREF="000513.html">[99s-extend] Body length and content-length mismatch
+</A><A NAME="513">&nbsp;</A>
+<I>Samir Sow
+</I>
+
+</UL>
+</UL>
+ </ul>
+ <p>
+ <a name="end"><b>Last message date:</b></a>
+ <i>Fri Feb 27 18:33:56 CET 2015</i><br>
+ <b>Archived on:</b> <i>Fri Feb 27 18:33:54 CET 2015</i>
+ <p>
+ <ul>
+ <li> <b>Messages sorted by:</b>
+
+ <a href="subject.html#start">[ subject ]</a>
+ <a href="author.html#start">[ author ]</a>
+ <a href="date.html#start">[ date ]</a>
+ <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list...
+ </a></b></li>
+ </ul>
+ <p>
+ <hr>
+ <i>This archive was generated by
+ Pipermail 0.09 (Mailman edition).</i>
+ </BODY>
+</HTML>
+