I am trying to install some packages in Python using easy install. But i get a 'Download Error' for any package i try to install. So i tried to test if internet is accessible at all from the machine (Its a Red Hat 6 machine, I am connected remotely) by doing a
$curl www.google.com . I got no results. But
$lynx www.google.com brings up the lynx browser with the page opened.
I tried to open ports 80 and 443 using iptables. Still the same error. So if lynx could open the page, it means i have access to the internet. Is there a way to approve specific applications like curl to access the internet. What might be the problem here ?