I am trying to execute a URL from my server via cURL or wget - the URL is on a domain served from my local server where I'm trying to execute the cURL/wget command and the domain never seems to resolve. I have no problem running those commands on a site hosted outside of my server (www.cnn.com
, for example). I have also tried accessing via IP address to no avail. The only reason we need to use a web address as opposed to having command-line php run the page directly is that there are apache server variables used in the code that won't be defined if run outside of apache.
Does anyone know of a workaround for this?