sergioperez / fronius-auth-proxy

Authentication proxy to avoid using the HTTP digest implementation used on the Fronius inverter controllers
3 stars 2 forks source link

Using GET #2

Open nevaus opened 1 year ago

nevaus commented 1 year ago

Does this utility support GET? I tried testing this in a bash script..

curl -X GET \
  -H "Accept: application/json" \
"http://ProxyIP:30072/request?username=service&password=dummypass&port=80&hostname=InverterIP&path=/config/exportlimit/

Also tried changing "Accept" to "Content-Type", without luck.

The proxy output show that it authenticates, but then ends showing this result:

 <head>
  <title>400 Bad Request</title>
 </head>
 <body>
  <h1>400 Bad Request</h1>
 </body>
</html>

Would be great for GET to work, so that we can retrieve existing settings from the inverter. Many Thanks.