It's not a solution actually, it's a
workaround. That Tasker bug stills. In my case I use a third-part PHP server (from Google Scripts) that only gives me the tradicional
$_POST and
$_GET options, so I can't use
file_get_contents('php://input');.
If I set the Content Type to
text or
application/x-www-form-urlencoded the
%HTTPD is set but
$_POST is empty, if I don't set a Content Type it does the opposite, the parameters are passed to
$_POST but
%HTTPD is empty.
Since I hadn't received any reply here,
I've asked it on StarckOverflow and got another
workaround leaving Content Type empty and using an output file to get the server response.
But it is still a Tasker bug.