Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 ?

share|improve this question
    
You might have better luck on unix.stackexchange.com –  jgritty Dec 14 '12 at 19:28
    
what is the output of $ curl -i www.google.com ? –  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
show 3 more comments

migrated from stackoverflow.com Dec 15 '12 at 19:35

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.