I use docker compose and the latest version of Kong (1.0.3) to test Kong. I try the doc’s example and it’s worked
curl -i -X POST
–url htp://localhost:8001/services/
–data ‘name=example-service’
–data ‘url=htp://mockbin.org’
curl -X POST htp://localhost:8001/services/example-service/routes --data ‘hosts[]=example.com’
curl -i -X GET --url htp://localhost:8000 --header ‘Host: example.com’
I tried an other service and route and it doesn’t work
curl -i -X POST
–url http://localhost:8001/services/
–data ‘name=example-servicz’
–data ‘url=htp://anapioficeandfire.com/api/’
curl -i -X POST htp://localhost:8001/services/example-servicz/routes --data ‘hosts[]=examplz.com’
curl -i -X GET --url htp://localhost:8000/characters/583 --header ‘Host: examplz.com’
I get a 301 return code.
Can you explain me the mistake ?
PS: i remove a t in http to bypass the validation.