mirror of
https://github.com/yuriskinfo/cheat-sheets.git
synced 2025-12-21 13:23:11 +01:00
Fixing curl cookbook
This commit is contained in:
@@ -146,7 +146,8 @@ place IP address to query for is `bulk_paste`. In curl you specify field values
|
||||
with `-F 'name=value'` option:
|
||||
|
||||
----
|
||||
curl -s -X POST -F 'action=do_whois' -F 'family=ipv4' -F 'method_whois=whois' -F 'bulk_paste=35.1.33.192' -F 'submit_paste=Submit' https://asn.cymru.com/cgi-bin/whois.cgi | grep "|"
|
||||
curl -s -X POST -F 'action=do_whois' -F 'family=ipv4' -F 'method_whois=whois' \
|
||||
-F 'bulk_paste=35.1.33.192' -F 'submit_paste=Submit' https://asn.cymru.com/cgi-bin/whois.cgi | grep "|"
|
||||
----
|
||||
|
||||
Output:
|
||||
|
||||
Reference in New Issue
Block a user