LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-19-2009, 06:45 AM   #1
nitin.cool4urchat
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
Question curl(7) cannot connect to host


whenver i try to connect to internet I get this error: curl(7) cannot connect to host.
I am a student and hence access internet through proxy.
My proxy settings are:
gateway: 10.24.0.1
Ip address: 10.24.1.11
dns : 10.25.0.4
netmask : 255.255.0.0

can anyone plz help me on this??
while my internet works fine in my firefox after I made the required settings. Moreover i also configured the system eth0 according to the above proxy requirements.

Last edited by nitin.cool4urchat; 12-19-2009 at 06:46 AM.
 
Old 12-19-2009, 07:05 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
those aren't proxy settings, they are network interface / route settings. If you want to make curl use a proxy. you can use the http_proxy environmental variable:

export http_proxy=http://my.proxy.example.com:8080
curl htp://website.com
 
Old 12-20-2009, 03:11 AM   #3
hlingler
Member
 
Registered: May 2007
Location: Connellsville, PA, USA
Distribution: Fedora 8/9/10/11
Posts: 71

Rep: Reputation: 15
Quote:
whenver i try to connect to internet I get this error: curl(7) cannot connect to host.
Review this, see if it looks familiar: http://forums.fedoraforum.org/showthread.php?t=236552

V
 
Old 12-20-2009, 06:04 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
Why? That's irrelevant. a cannot connect to host error is about as bog standard and generic (and not its fault at all) as curl can get.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
curl: (7) couldn't connect to host // wget --> failed: Connection refused. linea Linux - Newbie 12 05-21-2012 12:56 PM
Net connect - Curl error 6 goingtopot Linux - Newbie 0 06-28-2006 04:57 PM
Why is my curl returning error 7 can't connect for everything? DangNewbie Linux - Software 12 05-08-2006 12:21 PM
cURL can't find host Mr_Munkey Linux - Software 1 11-18-2004 09:34 AM
Wget and cURL can't connect umberleigh Linux - Newbie 0 09-21-2004 05:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration