Some useful CURL's command line arguments
Curl follow location : use "-L" option
i.e If page redirects, curl should redirect to that page as well or to follow the location
curl -L -b google.com
Curl add proxy
curl -x 172.28.1.253:8080 ftp://ftp.leachsite.com/README
Curl user agent
curl -A 'Mozilla/3.0 (Win95; I)' http://www.nationsbank.com/
Other common strings:
'Mozilla/3.0 (Win95; I)' Netscape Version 3 for Windows 95
'Mozilla/3.04 (Win95; U)' Netscape Version 3 for Windows 95
'Mozilla/2.02 (OS/2; U)' Netscape Version 2 for OS/2
'Mozilla/4.04 [en] (X11; U; AIX 4.2; Nav)' NS for AIX
'Mozilla/4.05 [en] (X11; U; Linux 2.0.32 i586)' NS for Linux
To run Curl Silently without producing any output on the screen: --use '-s' with '-o ' option
Curl follow location : use "-L" option
i.e If page redirects, curl should redirect to that page as well or to follow the location
curl -L -b google.com
Curl add proxy
curl -x 172.28.1.253:8080 ftp://ftp.leachsite.com/README
Curl user agent
curl -A 'Mozilla/3.0 (Win95; I)' http://www.nationsbank.com/
Other common strings:
'Mozilla/3.0 (Win95; I)' Netscape Version 3 for Windows 95
'Mozilla/3.04 (Win95; U)' Netscape Version 3 for Windows 95
'Mozilla/2.02 (OS/2; U)' Netscape Version 2 for OS/2
'Mozilla/4.04 [en] (X11; U; AIX 4.2; Nav)' NS for AIX
'Mozilla/4.05 [en] (X11; U; Linux 2.0.32 i586)' NS for Linux
To run Curl Silently without producing any output on the screen: --use '-s' with '-o ' option
curl -s -o my_output_file.txt http://www.example.com
Thanks Buddy.
ReplyDeleteit help me !!!