3 ms·
Question: What does the -4 in the curl command do?
by shahzeb 11y ago
Question: What does the -4 in the curl command do?
- chris_wot 11y agoman curl [cut irrelevant stuff] OPTIONS -4, --ipv4 This option tells curl to resolve names to IPv4 addresses only, and not for example try IPv6.
- hobarrera 11y agoI'm actually curious as to why this only works via ipv4.
- Hurtak 11y agoyou can do something like this to quickly search what some option is doing $ curl --help | grep "\-4" '-' needs to be escaped