pve2-api-php-client
pve2-api-php-client copied to clipboard
Proxmox 2.0 API Client for PHP
Line 145: if ($this->login_ticket_timestamp >= (time() + 7200)) { The timestamp is always expired this way. It should be: if ($this->login_ticket_timestamp
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
the debug mode no longer exist in the new class . where we can active the debug mode and show the full response ?
Hello, I need to update php client to always get a UPID for a valid request. It's valid for POST requests only. PUT returns boolean 1 if it's valid. Is...
Hi, I think you forgot to delete / comment line 233-238 because at every (get, put, post delete) action the script returns an full response from curl. ![image](https://github.com/CpuID/pve2-api-php-client/assets/108761203/85b391f8-b180-4d99-b1c6-eea3e1dc0f08)
Helps as the class gets added to code-bases, easier to track it. You weren't wrong about not working with it! Investigate @danhunsaker concept of PSR-3 handling mentioned in Issue #19...
I found several security flaws in the action function. ### SSL/TLS Verification Disabled https://github.com/CpuID/pve2-api-php-client/blob/b9ef9cb4f040cf71bfa5281b1e31bfae7a984474/pve2_api.class.php#L219C20-L219C20 ``` curl_setopt($prox_ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($prox_ch, CURLOPT_SSL_VERIFYHOST, false); ``` This makes the requests vulnerable to Man-in-the-Middle (MITM)...
Comment out the verbose error logging segment. Plan is to expose this via option as part of Issue #47 and Pull #42 @danhunsaker if you could please review & merge...
Add the support for auth with API Token **How it works** ============ the class now parse the password parameter ($this->password). if there a ":" in password they will be use...
Addresses GitHub Issue #8 - Set parameters as CURLOPT_POSTFIELDS, which cURL will automatically translate into the URL query string. This lets us pass the ?params versus ¶ms logic off to...