curl
- 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
1 |
curl -I URL_HERE |
Specify Host Header
Example
1 |
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
1 |
curl -U PROXY_USER:PROXY_PW -x MY_PROXY_SERVER:PROXY_PORT http://ip.serverok.in |
Proxy with IP auth example
1 |
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
1 |
curl --socks5 127.0.0.1:7070 http://ip.serverok.in |
Sent Multiple Rquests
Following command will sent 100 requet to url specified.
1 |
curl -s "http://serverok.in/wp-login.php?[1-100]" |
On server, you will see requests like
1 2 3 |
http://serverok.in/wp-login.php?1 http://serverok.in/wp-login.php?2 http://serverok.in/wp-login.php?3 |