IP Address | {{.IP}} | |
Remote Host | {{.Host}} | |
User Agent | {{.UserAgent}} | |
Port | {{.Port}} | |
Language | {{.Lang}} | |
Referer | {{.Referer}} | |
Connection | {{.Connection}} | |
KeepAlive | {{.Keepalive}} | |
Method | {{.Method}} | |
Encoding | {{.Encoding}} | |
MIME Type | {{.Mime}} | |
Charset | {{.Charset}} | |
Via | {{.Via}} | |
X-Forwarded-For | {{.Forwarded}} |
$ curl ifconfig.jd-app.com | ⇒ | {{.IP}} |
$ curl ifconfig.jd-app.com/ip | ⇒ | {{.IP}} |
$ curl ifconfig.jd-app.com/host | ⇒ | {{.Host}} |
$ curl ifconfig.jd-app.com/ua | ⇒ | {{.UserAgent}} |
$ curl ifconfig.jd-app.com/port | ⇒ | {{.Port}} |
$ curl ifconfig.jd-app.com/lang | ⇒ | {{.Lang}} |
$ curl ifconfig.jd-app.com/keepalive | ⇒ | {{.Keepalive}} |
$ curl ifconfig.jd-app.com/connection | ⇒ | {{.Connection}} |
$ curl ifconfig.jd-app.com/encoding | ⇒ | {{.Encoding}} |
$ curl ifconfig.jd-app.com/mime | ⇒ | {{.Mime}} |
$ curl ifconfig.jd-app.com/charset | ⇒ | {{.Charset}} |
$ curl ifconfig.jd-app.com/via | ⇒ | {{.Via}} |
$ curl ifconfig.jd-app.com/forwarded | ⇒ | {{.Forwarded}} |
$ curl ifconfig.jd-app.com/all | ⇒ | ip_addr: {{.IP}} remote_host: {{.Host}} user_agent: {{.UserAgent}} port: {{.Port}} lang: {{.Lang}} connection: {{.Connection}} keep_alive: {{.Keepalive}} encoding: {{.Encoding}} mime: {{.Mime}} charset: {{.Charset}} via: {{.Via}} forwarded: {{.Forwarded}} |
$ curl ifconfig.jd-app.com/all.xml | ⇒ | <info> <charset>{{.Charset}}</charset> <connection>{{.Connection}}</connection> <encoding>{{.Encoding}}</encoding> <forwarded>{{.Forwarded}}</forwarded> <ip_addr>{{.IP}}</ip_addr> <keep_alive>{{.Keepalive}}</keep_alive> <lang>{{.Lang}}</lang> <mime>{{.Mime}}</mime> <port>{{.Port}}</port> <remote_host>{{.Host}}</remote_host> <user_agent>{{.UserAgent}}</user_agent> <via>{{.Via}}</via> </info> |
$ curl ifconfig.jd-app.com/all.json | ⇒ | {"connection":"{{.Connection}}","ip_addr":"{{.IP}}","lang":"{{.Lang}}","remote_host":"{{.Host}}","user_agent":"{{.UserAgent}}","charset":"{{.Charset}}","port":"{{.Port}}","via":"{{.Via}}","forwarded":"{{.Forwarded}}","mime":"{{.Mime}}","keep_alive":"{{.Keepalive}}","encoding":"{{.Encoding}}"} |