I am trying to access my ec2\'s public hostname from inside the instance.
I would like to run this command
curl http:// 169 254.169.254/latest/meta-data/
Shankar Damodaran provided an example of how to retrieve the response from a curl request, but specifically it is the
CURLOPT_RETURNTRANSFER that does as it says and returns the result from curl_exec
curl_exec