Ask Your Question

cURL error 7

asked 2022-02-17 07:46:44 -0500

Classid RETS (I believe)


Version: 1.7.2

We just recently started receiving the following error.

Login failed Error: cURL error 7: Failed to connect to port 80: Timed out

Any help would be greatly appreciated.

edit retag flag offensive close merge delete


It seems a little funny because the URL is HTTPS but your error message says port 80 timed out?

bwolven gravatar imagebwolven ( 2022-02-17 08:55:30 -0500 )edit

I'm sorry. That was a typo on my part it is just http.

ailchuk gravatar imageailchuk ( 2022-02-17 09:22:27 -0500 )edit

What are you using for a client app or library?

bwolven gravatar imagebwolven ( 2022-02-17 09:44:56 -0500 )edit


ailchuk gravatar imageailchuk ( 2022-02-17 09:46:46 -0500 )edit

You can try these settings that I use with PHRETS to see if it helps:
ini_set("default_socket_timeout", 6000); // seconds
ini_set("max_execution_time", 300);

bwolven gravatar imagebwolven ( 2022-02-17 09:51:55 -0500 )edit

I already had the default socket timeout. When I added the max execution it had no effect.

ailchuk gravatar imageailchuk ( 2022-02-17 10:29:27 -0500 )edit

Can you try connecting using a browser on the same computer to see if you get the same behavior?
Also try on a different one and see if it works there?

bwolven gravatar imagebwolven ( 2022-02-17 11:32:39 -0500 )edit

Were you able to connect using a browser?

bwolven gravatar imagebwolven ( 2022-02-17 16:32:28 -0500 )edit

The link seems to work. I get the following XML

<rets replycode="0" replytext="Login Request"> <rets-response> MemberName=Ilchuk Enterprises Vendor User=ailchuk,1,13,1756 Broker=3,3 MetadataVersion=21.6.17352 MetadataTimestamp=2021-06-12T01:12:13.5Z MinMetadataTimestamp=2021-06-12T01:12:13.5Z TimeoutSeconds=3600 GetMetadata=/rets/fnisrets.aspx/GBHAR/getmetadata GetObject=/rets/fnisrets.aspx/GBHAR/getobject Login= Logout=/rets/fnisrets.aspx/GBHAR/logout Search=/rets/fnisrets.aspx/GBHAR/search </rets-response> </rets>

ailchuk gravatar imageailchuk ( 2022-02-18 07:26:14 -0500 )edit

Is it possible they could be blocking my connection?

ailchuk gravatar imageailchuk ( 2022-02-18 07:28:24 -0500 )edit

That reply means the login request succeeded so it connected to the RETS server.
Did you do this in a browser on the same box that your PHRETS code is running on?
And you configured PHRETS to use Digest authentication?

bwolven gravatar imagebwolven ( 2022-02-18 07:46:43 -0500 )edit

Sorry, I misunderstood initially on testing the link. I just tested it and I'm getting the site cannot be reached. ERR_CONNECTION_TIMED_OUT

ailchuk gravatar imageailchuk ( 2022-02-18 07:58:04 -0500 )edit

So when you test URL in browser it on your PHRETS box it times out?
But when you test it in a browser on another box it works?
If so, what is the external IP for the box that times out?

bwolven gravatar imagebwolven ( 2022-02-18 08:20:24 -0500 )edit

Correct. The server's browser times out while my pc's browser works. The IP of the server is

ailchuk gravatar imageailchuk ( 2022-02-18 08:22:07 -0500 )edit

Is this the only feed not working?
I see from history that you have a few others too.

bwolven gravatar imagebwolven ( 2022-02-18 15:17:18 -0500 )edit

We are checking to see if maybe your IP address has been blocked,

bwolven gravatar imagebwolven ( 2022-02-18 16:15:30 -0500 )edit

Thank you very much for your help. Was it anything we did on our side that caused the IP to get blocked?

ailchuk gravatar imageailchuk ( 2022-02-21 12:15:58 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2022-02-21 10:55:45 -0500

updated 2022-02-22 12:59:01 -0500

Looks like your IP address was blocked.
It should be unblocked sometime tomorrow morning.

edit flag offensive delete link more


Are you able to connect again today?

bwolven gravatar imagebwolven ( 2022-02-22 11:26:24 -0500 )edit

Yes. It's working great. Thank you again for your help.

ailchuk gravatar imageailchuk ( 2022-02-22 12:02:51 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2022-02-17 07:46:44 -0500

Seen: 341 times

Last updated: Feb 22