Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 . I got no results. But $lynx 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 ?

share|improve this question

migrated from Dec 15 '12 at 19:35

This question came from our site for professional and enthusiast programmers.

You might have better luck on – jgritty Dec 14 '12 at 19:28
what is the output of $ curl -i ? – sberry Dec 14 '12 at 19:28
@sberry After like a minute i get curl: (7) couldn't connect to host – Pradep Dec 14 '12 at 19:59
@jgritty Ill try that too. Thanks man. – Pradep Dec 14 '12 at 19:59
Do you have a .curlrc, and what happens if you rename that to something else temporarily? Alternitavely, use curl -q. – Wrikken Dec 14 '12 at 20:49

You must log in to answer this question.

Browse other questions tagged .