Author Topic: Curl error: 7 Failed connect to www.tcmb.gov.tr:443; No route to host  (Read 1031 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Hello,

php curl gives error when try to get this xml "https://www.tcmb.gov.tr/kurlar/today.xml"

Curl error: 7 Failed connect to www.tcmb.gov.tr:443; No route to host

Can anyone help me?

Offline
****
Re: Curl error: 7 Failed connect to www.tcmb.gov.tr:443; No route to host
« Reply #1 on: December 27, 2023, 12:51:07 AM »
Do you allow port 443 on your TCP_OUT in your csf firewall?
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: Curl error: 7 Failed connect to www.tcmb.gov.tr:443; No route to host
« Reply #2 on: December 27, 2023, 01:58:54 PM »
yes csf firewall tcp out 443 port is open

Offline
****
Re: Curl error: 7 Failed connect to www.tcmb.gov.tr:443; No route to host
« Reply #3 on: December 27, 2023, 07:34:13 PM »
Is it possibly that your servers IP has been blocked by tcmb.gov.tr, as no route to host is most likely a firewall issue.  Couple other issues might be ip6/4 related, but I'm going to assume that your server can reach other ip4 only hosts.

Try "  ping -4 google.com  "  then "ping -4 www.tcmb.gov.tr" and post the results.
Google Hangouts:  rcschaff82@gmail.com

Offline
****
Re: Curl error: 7 Failed connect to www.tcmb.gov.tr:443; No route to host
« Reply #4 on: December 27, 2023, 07:46:04 PM »
What was the frequency of your curl attempts? You likely could've trigged a firewall on the other web server. I can connect to it from here as a one-off connection in a web browser and via curl in the CLI.

Offline
*
Re: Curl error: 7 Failed connect to www.tcmb.gov.tr:443; No route to host
« Reply #5 on: December 28, 2023, 12:56:56 PM »
--- google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms

--- www.tcmb.gov.tr ping statistics ---
34 packets transmitted, 0 received, 100% packet loss, time 32999ms


I just installed this server. It's been like this since the beginning.

Offline
****
Re: Curl error: 7 Failed connect to www.tcmb.gov.tr:443; No route to host
« Reply #6 on: December 28, 2023, 08:06:24 PM »
reach out to tcmb.gov.tr and ask them to check their firewall for your IP being blocked.  If you just got the IP, it could be blocked due to the last person who the IP was issued to was a spammer or hacker.
Google Hangouts:  rcschaff82@gmail.com