pve2-api-php-client icon indicating copy to clipboard operation
pve2-api-php-client copied to clipboard

HTTP/2 not supported (in case of PVE Node behind Reverse Proxy)

Open Anuril opened this issue 2 years ago • 1 comments

If a Proxmox Host is behind a Reverse Proxy that responds with HTTP/2, the api will return "invalid HTTP Response".

This is because HTTP is parsed manually:

https://github.com/CpuID/pve2-api-php-client/blob/b9ef9cb4f040cf71bfa5281b1e31bfae7a984474/pve2_api.class.php#L245

Anuril avatar Sep 28 '23 19:09 Anuril

Proxmox API uses HTTP/1.1 so it makes sense to keep this as-is. @danhunsaker what do you reckon?

This could be part of a bigger picture approach to there being a Reverse Proxy in-between code and node though.

@Anuril - do you want to submit a PR to support Reverse Proxies? Would be great if so. :-)

lsthompson avatar Dec 22 '23 22:12 lsthompson