Skip to content

Allow for HTTP request redirects #347

Open
@Pexers

Description

@Pexers

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions