btunnel http
Serve localhost http server
Synopsis
To serve a localhost http server running in port
btunnel http --help
Output of the above command is like this -
To serve a localhost http server running in port <PORT>, use the "http" command.
The default port picked up by btunnel is 8000.
This gives you a randomly generated url which is globally accessible
through the internet.
Usage:
btunnel http [flags]
Flags:
-a, --auth string basic auth user name and password in this format (without quote) 'user:pass')
-h, --help help for http
-p, --port string localhost port to serve from (default "8000")
--request-headers strings key:value pair to send in the request header to the localhost
can be ',' separated values like "auth:key,user:john" to provide a list
--response-headers strings key:value pair to send in the response header before returning the localhost response
can be ',' separated values like "auth:key,user:john" to provide a list
-s, --subdomain string registered subdomain to expose
Global Flags:
-c, --config string config file (default is $HOME/.btunnel.yaml)
-k, --key string API Key to use btunnel, sign-up at https://www.btunnel.in to get your own
Options
-h, --help help for http
-p, --port string localhost port to serve from (default "8000")
Options inherited from parent commands
-c, --config string config file (default is $HOME/.btunnel.yaml)
-k, --key string API Key to use btunnel, sign-up at https://www.btunnel.in to get your own
SEE ALSO
- Expose localhost to the Internet using btunnel
- btunnel - btunnel client cli tool