View XML

In the first step to work with the yun I will porting an existing Project with an uno an Ethernet Shield to an yun.

It was an easy way to bring the first lines to the Webbrowser but the xml is not displayed correctly.

I print this lines to the Client:

//Daten an Webseite als XML senden
  //client.println(F("HTTP/1.1 200 OK"));
  client.println(F("Content-Type: application/xhtml+xml; charset=ISO-8859-1"));
  client.println(F("Connnection: close"));
  client.println();
    
  // Send XML body.
  client.println(F("<?xml version=\"1.0\"?>"));
  client.println(F("<xml>"));
  client.println(F("<wall24-aquacontrol-01>"));
  client.print(F("<temp>"));
  client.print(TempMittel);
  client.print(F("</temp>"));
  client.println(F("</wall24-aquacontrol-01>"));            
  client.println(F("</xml>"));

with the uno an ethernet the Webbrowser show an request like this:

This XML file does not appear to have any style information associated with it. The document tree is shown below.


21.90
58.10

with the yun the request are no correct xml:

HTTP/1.1 200 OK
Content-Type: application/xhtml+xml; charset=ISO-8859-1
Connnection: close

<?xml version="1.0"?> -127.00

Can someone help me where the failure is?

Thank you

One little piece is missing. Replace

//client.println(F("HTTP/1.1 200 OK"));

with

client.println(F("Status: 200"));

Strike!! Thats it!

Thank you Federico!

Best Regards
Wolfgang