Hallo,
ich habe probier heute etwas mit der PMG API zumachen aber ich kann nicht per API schreiben. Das ist mein Console aus Insomnia:
ich habe probier heute etwas mit der PMG API zumachen aber ich kann nicht per API schreiben. Das ist mein Console aus Insomnia:
Code:
* Preparing request to https://pmg-1.*****:8006/api2/json/config/whitelist/receiver?email=noreply%40*****
* Current time is 2025-02-25T21:34:29.278Z
* Enable automatic URL encoding
* Using default HTTP version
* Enable timeout of 30000ms
* Enable SSL validation
* Hostname pmg-1.***** was found in DNS cache
* Trying 192.168.30.20:8006...
* Connected to pmg-1.***** (192.168.30.20) port 8006 (#64)
* ALPN: offers h2
* ALPN: offers http/1.1
* CAfile: /etc/ssl/cert.pem
* CApath: none
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS header, Finished (20):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.2 (OUT), TLS header, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN: server did not agree on a protocol. Uses default.
* Server certificate:
* subject: CN=pmg-1.*****
* start date: Feb 15 23:59:50 2025 GMT
* expire date: May 16 23:59:49 2025 GMT
* subjectAltName: host "pmg-1.****" matched cert's "pmg-1.*****"
* issuer: C=US; O=Let's Encrypt; CN=R10
* SSL certificate verify ok.
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
> POST /api2/json/config/whitelist/receiver?email=noreply%40nerdpost.xyz HTTP/1.1
> Host: pmg-1.*****:8006
> CSRFPreventionToken: 67BE3317:N7AFDdWK3Nk3hui1upfobzCM2JiClwHbTmI/wcbxXJc
> Cookie: PMGAuthCookie=PMG:api@pmg:67BE3317::cLP8d7AySDSOuJKx7p5l6g2//qVzQ8X9v7yEPajEoqVRXSMUG2n7Qn8+P7k/ywGWBweawVXsPC4/ZgkfzBgi4hIXZ+hIGFusWl4OycTYeDW7GKEb5BUx8XR0ReaXexuedMPlz8tDyeistb++E/Rhwv4aw+mLXduoMkbV8E0weggtF3ePgEmfB3QWKE1BLd9wwkiWzy3YLjdCWqcckh/LgUE5BPqbMitsgDO9+g5d1Fk40L+qD4IC1Pj91qW6E86Sx8B4fCtx5bbfBIytzCEuaoz8eU5xBJ7sf7g4Mktxym1kAAwd/FSHJe+daHWK0qfzLu1hEp9aGLWFl9P20jZfyQ==
> Content-Type: multipart/form-data; boundary=X-INSOMNIA-BOUNDARY
> Accept: */*
> Content-Length: 25
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
| --X-INSOMNIA-BOUNDARY--
* We are completely uploaded and fine
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* Mark bundle as not supporting multiuse
< HTTP/1.1 506 upload 'Content-Type 'multipart/form-data; boundary=X-INSOMNIA-BOUNDARY' not implemented
< Cache-Control: max-age=0
< Connection: close
< Date: Tue, 25 Feb 2025 21:34:29 GMT
< Pragma: no-cache
< Server: pve-api-daemon/3.0
< Content-Length: 88
< Expires: Tue, 25 Feb 2025 21:34:29 GMT
* Received 88 B chunk
* Closing connection 64
* TLSv1.2 (OUT), TLS header, Supplemental data (23):