The error 7 means that the TCP connect fails to the given host/port.
Are you behind a firewall, using proxy?
If you want a list of error codes, you can look in the source code. They are not documented at the moment![]()
Anyone know of a way to "trace" what is going on with a cURL function?
I have a php script that uses cURL to a specific IP and it is coming back with error 7, permission denied.
I dont know if this is being blocked by the webhost, or the if it gets to where it is going and the router/pc is blocking it. And for arguments sake, it worked before, and now it doesnt but I have changed both the connecting PC and the webhost has "upgraded" their php back.
Just curious if there is a way to know which it is...
Fusion Brain Version 6 Released!
1.9in x 2.9in -- 47mm x 73mm
30 Digital Outputs -- Directly drive a relay
15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
Buy now in the MP3Car.com Store
The error 7 means that the TCP connect fails to the given host/port.
Are you behind a firewall, using proxy?
If you want a list of error codes, you can look in the source code. They are not documented at the moment![]()
That part I knew. :) But I got the same error code from a previous host that blocked certain cURL functions on their end.
Basically I am connecting to http://ip:port?stuff and it doesnt like that.
So before I knew the host blocked it (with error 7), moved to a new free host just for this script and it worked. Now it is not working again and I am unsure if the host blocked it since the port is not standard 80 or 8080, or if the problem is on my side.
Fusion Brain Version 6 Released!
1.9in x 2.9in -- 47mm x 73mm
30 Digital Outputs -- Directly drive a relay
15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
Buy now in the MP3Car.com Store
Well if I type the address in manually, it works... so that leads me to believe it is the host's settings...
Fusion Brain Version 6 Released!
1.9in x 2.9in -- 47mm x 73mm
30 Digital Outputs -- Directly drive a relay
15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
Buy now in the MP3Car.com Store
It might be the "stuff" part that the host rejects.. ?
Many hosts have protection againts webcrawlers and cURL is affected of such blockings.
Do you know that the host have youre port open?
Fusion Brain Version 6 Released!
1.9in x 2.9in -- 47mm x 73mm
30 Digital Outputs -- Directly drive a relay
15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
Buy now in the MP3Car.com Store
Out of curiosity, what do you use cURL for ?![]()
Well it is used for Remote Control of the Fusion Brain. Our server's host has weird proxies in place and blocks a ton of ports. So this one script is hosted on a separate free server. And it looks like they too just started blocking ports.
Basically the curl script opens a connection to the PC running MDX and sends back data such as what outputs should be turned on. Then MDX receives it uses it, and sends back data to our server so it can be shown.
Fusion Brain Version 6 Released!
1.9in x 2.9in -- 47mm x 73mm
30 Digital Outputs -- Directly drive a relay
15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
Buy now in the MP3Car.com Store
Bookmarks