iPad “only” shows all my source code and not my webpage for wifi on LAN

Ok, I am on android and pc. Left Mac a long time ago. Arduino is perfect for these.

I do automation systems using Bluetooth, RF24, wifi, whatever level client needs or can afford, being the high end of town they want it all. Great!

The big issue is 90% of these ppl have iPhones and iPads. Boo!

System automation on rf 24 is a Linux job
Arduino Bluetooth 2 awesome but iPhone wants pain in the #$& Bluetooth 4

So I said the hell with those let’s go wifi, the page on the LAN ip should be able to be read by any computer right?

Well I wrote my sketch and loaded it to ES13 and a Leo ( I usually use esp8266 D1 mini’s).

Typed the ip on my android and up it came worked first relays timers, sensors, the lot
Typed the ip on my hp pc and it also worked brilliantly first time

But I ran it via an iPad and believe it, all I got was my “entire” source code written out for all to see and no actual page. Just HTML source code.

How do I get APPLE TO DAMN WORK!!!!!??

My initial thought is that you are not sending a "Content-Type: text/html;" header in the response, but I can't say anything for sure without seeing your code. Can you post your code here (with code tags)?

Without unnecessary lengthy code to read here is the first three lines. As you can see the first line has that covered. It has just seriously left me close to breaking point that i cant make a relatively easy and stable wifi automation controller with arduino specifically catering for clients with apple devices. I do not want to have to literally go and make an ipad istore app.

"HTTP/1.x 200 OK\r\nContent-Type: text/html\r\nConnection: close\r\n\r\n"
"

a {text-decoration:none;} "
"

SKILLPOOL REM WIFI

"

Yarnzi:
"HTTP/1.x 200 OK\r\nContent-Type: text/html\r\nConnection: close\r\n\r\n"
"

a {text-decoration:none;} "
"

SKILLPOOL REM WIFI

"

Does the iPad like "HTTP/1.x"? That should be either "HTTP/1.0" or "HTTP/1.1".

The content is also not proper HTML (it's missing the , , and elements), which the iPad may not like either.

I don't have an iPad (or any other Apple products), so I can't test it myself.

OMG is that all it was!!!

I just changed it to 1.1 and bang there was the page in all its glory.

I cannot thank you enough brother. If you happen to live in Bondi, Australia i will shout you a case of beer.

Thank you, you legend! Apologies for my poor HTML knowledge, especially when my mistake happened in the very first statement. I am a very happy chappy!