--request-header
or -H
in short then the header you want to edit for example:host
and token
, if the headers already existed in the request then they will be overwritten, in case you want to delete a specific header from the request, you will need to pass an empty value for example --request-header 'host:'
. --response-header
or -R
in short, then the value that you want to edit, for example:role
and user
, if the headers already existed in the response then they will be overwritten, in case you want to delete a specific header from the response, you will need to pass an empty value for example --response-header 'role:'
. X-TOKEN
header with the token value, for example:curl https://hello.loclx.io -H 'X-TOKEN:secureToken'
, otherwise you will get Access Denied
429 Too Many Requests
.http://hello.loclx.io
will be redirected to https://hello.loclx.io
.hello.loclx.io
, then adding prefix path like /foo/bar
will update the incoming requests URL path before forwarding it to your localhost server.https://hello.loclx.io/api/v1
then after the modification it will become https://hello.loclx.io/foo/bar/api/v1
.