Register
It is currently Mon Sep 01, 2014 3:03 pm

Command cURL


All times are UTC - 6 hours


Post new topic Reply to topic  [ 4 posts ] 
Author Message
 PostPosted: Wed Jun 29, 2011 3:11 pm   

Joined: Fri Jun 24, 2011 2:46 pm
Posts: 8
Hi all,

when I type :

curl -T /Users/admin/Desktop/up.png -u idhost:passwdhost ftp://ftp.domainname.com/

it answers me :

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:27 --:--:-- 0

curl: (7) couldn't connect to host

I don't understand why.

If you know, please tell me wher's my mistake and give me an exemple of command (curl) for download from a server.

Thanks.


Top
 Profile  
 PostPosted: Wed Jun 29, 2011 7:36 pm   
User avatar

Joined: Wed Jun 08, 2011 8:27 am
Posts: 189
Location: outer Shpongolia
Are you using a proxy? It may be it, because there is no mistake in your line.


Top
 Profile  
 PostPosted: Thu Jun 30, 2011 5:02 am   

Joined: Fri Jun 24, 2011 2:46 pm
Posts: 8
ahahah !!! yes ! It was that ! I always use a VPN...

is it possible to download/upload with a proxy ?

secondly, what's the command line to download, for example, the up.png that I just upload onto my server ?

many thanks!


Top
 Profile  
 PostPosted: Thu Jun 30, 2011 6:14 am   
User avatar

Joined: Wed Jun 08, 2011 8:27 am
Posts: 189
Location: outer Shpongolia
Sure, « man curl ».

Code:
curl -s -U user_proxy:passwd_proxy -x proxy_name:port -u user:passwd -T /Users/admin/Desktop/up.png ftp://ftp.domainname.com/


To download:

Code:
curl -s -U user_proxy:passwd_proxy -x proxy_name:port -u user:passwd ftp://ftp.domainname.com/up.png


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP