To utilize the Agentless mode, you need to modify your request by adding specific headers. Here's how to set it up:
Start with the original request you want to make, for example:
Add the following headers to your request:
x-lunar-scheme: Set this header to the original scheme of the request, in this case, https.
host: Set this header to the host you want to communicate with, in this case, example.com.
Your modified request should now include these headers.
Change the URL of your request to the following format:
lunar_proxy_address with the DNS or IP address of the Lunar Proxy, and lunar_proxy_port with the port number on which the Lunar Proxy is listening.
For example, if the Lunar Proxy's address is
127.0.0.1 and it's listening on port
8000, your modified URL would be:
curl -i -H "host: example.com" -H "x-lunar-scheme: https" http://127.0.0.1:8000/this-is-my-path
By adding the necessary headers and modifying the URL as described, the request will be correctly routed through the Agentless mode of Lunar Proxy.
Please make sure to adjust the values of
lunar_proxy_port according to your specific setup and requirements.