Command Line Interface
$ curl ifconfig.us | ⇒ | 44.201.94.72 |
$ curl ifconfig.us/ip | ⇒ | 44.201.94.72 |
$ curl ifconfig.us/host | ⇒ | ec2-44-201-94-72.compute-1.amazonaws.com. |
$ curl ifconfig.us/ua | ⇒ | CCBot/2.0 (https://commoncrawl.org/faq/) |
$ curl ifconfig.us/port | ⇒ | 33230 |
$ curl ifconfig.us/lang | ⇒ | en-US,en;q=0.5 |
$ curl ifconfig.us/keepalive | ⇒ | |
$ curl ifconfig.us/connection | ⇒ | Keep-Alive |
$ curl ifconfig.us/encoding | ⇒ | gzip |
$ curl ifconfig.us/mime | ⇒ | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
$ curl ifconfig.us/charset | ⇒ | |
$ curl ifconfig.us/via | ⇒ | |
$ curl ifconfig.us/forwarded | ⇒ | 44.201.94.72 |
$ curl ifconfig.us/all | ⇒ | ip_addr: 44.201.94.72 remote_host: ec2-44-201-94-72.compute-1.amazonaws.com. user_agent: CCBot/2.0 (https://commoncrawl.org/faq/) port: 33230 lang: en-US,en;q=0.5 connection: Keep-Alive keep_alive: encoding: gzip mime: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 charset: via: forwarded: 44.201.94.72 |
$ curl ifconfig.us/all.xml | ⇒ | <info> <charset></charset> <connection>Keep-Alive</connection> <encoding>gzip</encoding> <forwarded>44.201.94.72</forwarded> <ip_addr>44.201.94.72</ip_addr> <keep_alive></keep_alive> <lang>en-US,en;q=0.5</lang> <mime>text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8</mime> <port>33230</port> <remote_host>ec2-44-201-94-72.compute-1.amazonaws.com. </remote_host> <user_agent>CCBot/2.0 (https://commoncrawl.org/faq/)</user_agent> <via></via> </info> |
$ curl ifconfig.us/all.json | ⇒ | {"connection":"Keep-Alive","ip_addr":"44.201.94.72","lang":"en-US,en;q=0.5","remote_host":"ec2-44-201-94-72.compute-1.amazonaws.com. ","user_agent":"CCBot/2.0 (https://commoncrawl.org/faq/)","charset":"","port":"33230","via":"","forwarded":"44.201.94.72","mime":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","keep_alive":"","encoding":"gzip"} |