MudGuard: Fehlermeldung bei file_get_contents - String auslesen.

Beitrag lesen

Hi,

{"I_Sol":"0.00","I_Bat":"9.99","I_Load":"1.51","U_Sol":"0.00","U_Bat":"13.54"
,"P_Sol":"0.00","P_Bat":"135.23","P_Load":"20.50"}

Mit dem Browser bekomme ich den String angezeigt!

PHP Warning:  file_get_contents(http://192.168.123.35/): failed to open stream: HTTP request failed! {"I_Sol":"0.13","I_Bat":"1.48","I_Load":"1.07","U_Sol":"0.00","U_Bat":"13.35","P_Sol":"0.00","P_Bat":"19.75","P_Load":"14.34"} in ..

Welchen Content-Type schickt der Server zu diesem JSON?

cu,
Andreas a/k/a MudGuard