<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Http Request - Content sent not received]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I've been using the flic buttons for some time to create an action in another app, but for some reason recently when I do the http.makeRequest the content sent is not received in the other app.</p>
<p dir="auto">In the code example I call the scan function to find the buttons, and when it's 'completed' I send respective bdAddr to register the button in the other app, but for some reason that information doesn't reach the app...</p>
<p dir="auto">Has there been any change in the way the information is passed on?! Or am I doing something wrong?! Can someone help me!</p>
<p dir="auto"><strong>code example is below:</strong></p>
<p dir="auto">var buttonManager = require("buttons");<br />
var http = require("http");</p>
<p dir="auto">var url = "<a href="https://xxxxxx/registerButton" rel="nofollow ugc">https://xxxxxx/registerButton</a>";<br />
var token = "Bearer yyyyy"</p>
<p dir="auto">scan()</p>
<p dir="auto">function scan(){</p>
<pre><code>scanWizard = buttonManager.startScanWizard();

...

scanWizard.on("complete", function(bdAddr) {
	var btn = buttonManager.getButton(bdAddr);

	http.makeRequest({
		url: url,
		method: "POST",
		headers: {"Content-Type": "application/json", "Authorization" : token},
		content: JSON.stringify({ "id": bdAddr }),
	}, function(err, res) {
        });
</code></pre>
<p dir="auto">});<br />
}</p>
]]></description><link>https://community.flic.io/topic/18162/http-request-content-sent-not-received</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 16:18:27 GMT</lastBuildDate><atom:link href="https://community.flic.io/topic/18162.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 May 2022 11:19:40 GMT</pubDate><ttl>60</ttl></channel></rss>