Curl from shell script inside a container

I am running two applications inside minikube. I try to issue a curl command to one of the application pods and it runs fine from outside the containers but when i run the same curl command from a bash script inside a container, I get no output. What could be wrong?

Source: Docker Questions