I try to get a string from a .txt file from another server.
When I run the request, the console shows me this error:
"Unexpected token /" The / is a placeholder, the error contains the first letter of the string on the server.
My code:
var url = "http://r0bs.net/ihdccjsonapi.php?url="+encodeURIComponent(content);
$http.get(url)
.success(function (data) {
console.log(data);
})
When you navigate manual to the url you see this:
Familie. Beruf. Freizeit. Egal, was Sie vorhaben, mit dem Golf Variant machen Sie immer eine sportliche Figur. Entdecken Sie das Auto für einen aktiven Lebensstil.
The Error for this url is "unexpected token F"
I can't post the url here, i hope you can help me.
Varha