https://restcountries-v1.p.mashape.com/ is returning with header “HTTP/1.1 302 Moved Temporarily” and redirects to https://www.mashape.com/fayder/REST-Countries-v1, and if you echo the response you will echo the whole page.
Join in the discussion - add comment below:
Hey there. I had not noticed this before. I’ll take a look and I’ll get back to you in the next 12h (I’m really sleepy right now). In the meantime, maybe you could use the service directly, without mashape’s authorization http://restcountries.eu/rest/v1.
More at http://restcountries.eu
Hello again. So I added a parameter to get all countries: https://restcountries-v1.p.mashape.com/all
Seems to be working. Apparently there’s an issue if there are no parameters.
Thanks for notifying!
Stackoverflow: http://stackoverflow.com/questions/22461420/unirest-response-returning-a-website