From c44af3981f4c19ae40a222c1b740b7195a5b5502 Mon Sep 17 00:00:00 2001 From: cremesk Date: Wed, 31 Jul 2019 13:36:49 +0200 Subject: [PATCH] shorten url --- views/index.tpl | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/views/index.tpl b/views/index.tpl index c548a49..346f622 100644 --- a/views/index.tpl +++ b/views/index.tpl @@ -104,21 +104,21 @@

Command Line Interface

- - - - - - - - - - - - - - - + + + + + + + + + + + + + +
$ curl https://whois.envs.net{{.IP}}
$ curl https://whois.envs.net/ip{{.IP}}
$ curl https://whois.envs.net/host{{.Host}}
$ curl https://whois.envs.net/ua{{.UserAgent}}
$ curl https://whois.envs.net/port{{.Port}}
$ curl https://whois.envs.net/lang{{.Lang}}
$ curl https://whois.envs.net/keepalive{{.Keepalive}}
$ curl https://whois.envs.net/connection{{.Connection}}
$ curl https://whois.envs.net/encoding{{.Encoding}}
$ curl https://whois.envs.net/mime{{.Mime}}
$ curl https://whois.envs.net/charset{{.Charset}}
$ curl https://whois.envs.net/via{{.Via}}
$ curl https://whois.envs.net/forwarded{{.Forwarded}}
$ curl https://whois.envs.net/allip_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 https://whois.envs.net/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>
+
$ curl whois.envs.net{{.IP}}
$ curl whois.envs.net/ip{{.IP}}
$ curl whois.envs.net/host{{.Host}}
$ curl whois.envs.net/ua{{.UserAgent}}
$ curl whois.envs.net/port{{.Port}}
$ curl whois.envs.net/lang{{.Lang}}
$ curl whois.envs.net/keepalive{{.Keepalive}}
$ curl whois.envs.net/connection{{.Connection}}
$ curl whois.envs.net/encoding{{.Encoding}}
$ curl whois.envs.net/mime{{.Mime}}
$ curl whois.envs.net/charset{{.Charset}}
$ curl whois.envs.net/via{{.Via}}
$ curl whois.envs.net/forwarded{{.Forwarded}}
$ curl whois.envs.net/allip_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 whois.envs.net/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 https://whois.envs.net/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}}"}