Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Coders Corner


Reply
 
Share Thread Tools Display Modes
Old 06-22-2009, 11:56 PM   #1
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,849
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
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...
2k1Toaster is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 06-23-2009, 02:46 AM   #2
Variable Bitrate
 
Join Date: Mar 2009
Location: Kristiansand, Norway
Posts: 271
Crinos is an unknown quantity at this point
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
Crinos is offline   Reply With Quote
Old 06-23-2009, 09:18 AM   #3
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,849
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
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.
2k1Toaster is offline   Reply With Quote
Old 06-23-2009, 09:31 AM   #4
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,849
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
Well if I type the address in manually, it works... so that leads me to believe it is the host's settings...
2k1Toaster is offline   Reply With Quote
Old 06-23-2009, 09:40 AM   #5
Variable Bitrate
 
Join Date: Mar 2009
Location: Kristiansand, Norway
Posts: 271
Crinos is an unknown quantity at this point
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?

Last edited by Crinos; 06-23-2009 at 09:43 AM..
Crinos is offline   Reply With Quote
Old 06-23-2009, 09:47 AM   #6
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,849
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
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...
2k1Toaster is offline   Reply With Quote
Old 06-23-2009, 04:09 PM   #7
Variable Bitrate
 
Join Date: Mar 2009
Location: Kristiansand, Norway
Posts: 271
Crinos is an unknown quantity at this point
Out of curiosity, what do you use cURL for ?
Crinos is offline   Reply With Quote
Old 06-23-2009, 04:18 PM   #8
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,849
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
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.
2k1Toaster is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RAM Errors blade828 General Hardware Discussion 2 03-12-2009 07:28 AM
AutoIt and RoadRunner: how do you check for RoadRunner / handling -1 errors Konrad Road Runner 3 03-04-2009 12:30 PM
Speaker Depth twnll Car Audio 1 10-22-2005 10:49 PM
Head Unit bay/DIN depth measurement on 2000 4Runner? nxt125 General MP3Car Discussion 1 07-22-2002 05:43 PM



All times are GMT -5. The time now is 02:12 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
"VaultWiki" powered by VaultWiki v2.5.2.
Copyright © 2008 - 2009, Cracked Egg Studios.Ad Management by RedTyger
Message Board Statistics