Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for HTTP request redirects #347

Open
Pexers opened this issue Dec 3, 2024 · 0 comments
Open

Allow for HTTP request redirects #347

Pexers opened this issue Dec 3, 2024 · 0 comments

Comments

@Pexers
Copy link

Pexers commented Dec 3, 2024

Hey there,

I want my JSON Exporter to request data from a URL using HTTP and an IP address, which is no issue in terms of security since my reverse proxy converts any HTTP request to HTTPS with a valid SSL/TLS certificate.

However, JSON Exporter doesn't follow redirects, so I always get a 301 status code response.

$ curl -L "http://localhost:7979/probe?module=default&target=http://<my_public_ip>/json/health"
Failed to fetch JSON response. TARGET: http://<my_public_ip>/json/health, ERROR: 301 Moved Permanently

Would it be possible to enable this configuration any time soon?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant