Results 1 to 8 of 8

Thread: More in depth cURL permission errors?

  1. #1
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049

    More in depth cURL permission errors?

    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

  2. #2
    Maximum Bitrate Crinos's Avatar
    Join Date
    Mar 2009
    Location
    Kristiansand, Norway
    Posts
    483
    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

  3. #3
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Quote Originally Posted by Crinos View Post
    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

  4. #4
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    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

  5. #5
    Maximum Bitrate Crinos's Avatar
    Join Date
    Mar 2009
    Location
    Kristiansand, Norway
    Posts
    483
    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?

  6. #6
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Quote Originally Posted by Crinos View Post
    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?
    No for all I know they blocked the port. I am sick of migrating to new hosts all the time, so I am building a spare parts PC for my own small server right now...
    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

  7. #7
    Maximum Bitrate Crinos's Avatar
    Join Date
    Mar 2009
    Location
    Kristiansand, Norway
    Posts
    483
    Out of curiosity, what do you use cURL for ?

  8. #8
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Quote Originally Posted by Crinos View Post
    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

Similar Threads

  1. RAM Errors
    By blade828 in forum General Hardware Discussion
    Replies: 2
    Last Post: 03-12-2009, 07:28 AM
  2. Replies: 3
    Last Post: 03-04-2009, 12:30 PM
  3. Speaker Depth
    By twnll in forum Car Audio
    Replies: 1
    Last Post: 10-22-2005, 10:49 PM
  4. Head Unit bay/DIN depth measurement on 2000 4Runner?
    By nxt125 in forum General MP3Car Discussion
    Replies: 1
    Last Post: 07-22-2002, 05:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •