I've found a bug trying to integrate Piwik with Django via Python-piwik.
return self::getCurrentScheme().'://'.self::getCurrentHost(). self::getCurrentScriptPath();
which obviously does not work.
This breaks the API.
Should be easy to fix
$_SERVER['REQUEST_URI'] is used and it contains
That was quite fast.