- Making POST request from curl
- Using Host Header in curl
- curl set user agent
- Check if HTTP/2 enabled using curl
- Fetch as Google with curl
- curl using cookie
- How to use HTTP Basic authentication with cURL
- How to get Contents of a Webpage using PHP 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://checkip.amazonaws.com
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://checkip.amazonaws.com
For socks proxy with authentication, use
curl --socks5 USER_HERE:PW_HERE@PROXY_IP:1080 http://checkip.amazonaws.com
Sent Multiple Rquests
Following command will sent 100 requet to url specified.
curl -s "http://serverok.in/wp-login.php?[1-100]"
On the 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
Leave a Reply