LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   curl(7) cannot connect to host (https://www.linuxquestions.org/questions/fedora-35/curl-7-cannot-connect-to-host-776847/)

nitin.cool4urchat 12-19-2009 06:45 AM

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.

acid_kewpie 12-19-2009 07:05 AM

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

hlingler 12-20-2009 03:11 AM

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

acid_kewpie 12-20-2009 06:04 AM

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.


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