The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   OS X Developer (http://hintsforums.macworld.com/forumdisplay.php?f=27)
-   -   Downloading a URL to a Script variable (curl failing) (http://hintsforums.macworld.com/showthread.php?t=35983)

NovaScotian 03-05-2005 10:13 AM

Quote:

Originally Posted by hayne
Another thing you can try (in Terminal) in order to rule out this being a problem specific to 'curl' is try connecting to port 80 using 'telnet'.
E.g.:
telnet www.apple.com 80

When I try this, it takes longer than it should (tens of seconds) but I do connect successfully - I see the following:
Trying 17.254.0.91...
Connected to www.apple.com.
Escape character is '^]'.

I get:
Code:

[ACB-G3:~] bellac% telnet www.apple.com 80
Trying 17.112.152.32...
Connected to eg-www.apple.com.
Escape character is '^]'.
Connection closed by foreign host.

But much more important, a program called Little Snitch asks for permission to connect! That and your Ghost hint are the clue: Little Snitch informs me when a program is "reaching out" and allows me to permit it once or forever, creating a filter if forever. When I tried the telnet above, it asked. When I try the curl it doesn't. When I turn Little Snitch off in its preference pane, curl works as it should. Strange but true.

Thanks, Hayne - you are astonishingly patient!


All times are GMT -5. The time now is 05:42 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.