1
trying to connect to my script on a remote server with curl
but:
col-pos-spd# curl -v http://***:80/monitor/reply.php
* About to connect() to *** port 80 (#0)
* Trying 83.xxx.xxx.2... Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
then i tried wget
and:
wget -v http://***/monitor/reply.php
--2011-09-22 12:29:07-- http://***/monitor/reply.php
Connecting to 83.xxx.xxx.2:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 8 [text/html]
Saving to: `reply.php'
100%[====================================================================================================================>] 8 --.-K/s in 0s
2011-09-22 12:29:07 (1.05 MB/s) - `reply.php' saved [8/8]
so i can't figure out whi i'm getting an error with curl
and how can i avoid it?
thaks! but i've got a problem:
http_proxy
is undefined and/usr/local/etc/wgetrc
is empty. where canwget
store it's settings? – k102 – 2011-09-22T12:37:08.863@k102: In your home directory (that's what
~/
means) in a file named.wgetrc
- remember thatls
won't show it without the-a
option. – RedGrittyBrick – 2011-09-22T12:57:45.333there's no such file (
ls -a
andls -all
)... – k102 – 2011-09-22T13:06:58.830