Tikejhya: Ashish Nepal

Knowledgebase

Category: curl

sftp using curl [download file from ftp using curl]

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

curl -u user:password ‘ftp://remotefile/myfile.csv’ -o ~/Downloads/myfile.csv

curl -o ~/Downloads/myfile.csv -u ‘username’:’password’ sftp://remotefile/myfile.csv

NOTE: using password in command-line are not good idea from security point of view.

curl header size

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

root@sup ~# curl -I http://domain.com
HTTP/1.1 200 OK
Server: nginx/1.2.1
Date: Thu, 05 Dec 2013 19:40:40 GMT
Content-Type: text/html
Content-Length: 199
Last-Modified: Sun, 15 Sep 2013 17:06:37 GMT
Connection: keep-alive
Accept-Ranges: bytes
to count it:

root@sup ~# curl -s -w \%{size_header} -o /dev/null http://domain.com
215
result: 215 bytes.

curl -s -w ‘\nLookup time:\t%{time_namelookup}\nConnect time:\t%{time_connect}\nPreXfer time:\t%{time_pretransfer}\nStartXfer time:\t%{time_starttransfer}\n\nTotal time:\t%{time_total}\n’ -o /dev/null http://www.ashishnepal.com/

Powered by WordPress & Theme by Anders Norén