curl

View Header

To view the response header, use

curl -I URL_HERE

Specify Host Header

Example

curl http://192.99.201.92/ip.php -H "host: iptools.bizhat.com"

Using Proxy

To connect to a proxy using an Authenticated proxy, use

curl -U PROXY_USER:PROXY_PW -x MY_PROXY_SERVER:PROXY_PORT http://ip.serverok.in

Proxy with IP auth example

curl -x http://207.66.90.22:16416 -L http://checkip.amazonaws.com

To connect using Socks5 proxy running on 127.0.0.1 port 7070, run

curl --socks5 127.0.0.1:7070 http://ip.serverok.in

Sent Multiple Rquests

Following command will sent 100 requet to url specified.

curl -s "http://serverok.in/wp-login.php?[1-100]"

On server, you will see requests like

http://serverok.in/wp-login.php?1
http://serverok.in/wp-login.php?2
http://serverok.in/wp-login.php?3
Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *