I've tried everything, including changing the .cpp files etc., but I can't even figure out where they are coming from, here's a sample of what they look like.
GET / HTTP/1.1
Host: 192.168.1.40
Accept-Encoding: gzip, deflate
Connection: keep-alive
Upgrade-Insecure-Requests: 1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15
Referer: http://192.168.1.40/
Cache-Control: max-age=0
Accept-Language: en-us
Those are standard HTTP headers that most any HTTP server will send out as part of an HTTP request from a browser or other client. What on earth makes you think they need to be blocked??
@OP, you have been on this forum long enough to know better than this. You are asking for help but keeping us in the dark. We don't know what hardware, libraries or code you are using. All we can say is that text is http headers. What/why it's getting printed, we can't even guess without more info from you.
UKHeliBob:
Please post a complete sketch that illustrates the problem
It isn't that it's a problem per se, but that the extra verbiage coming from the #include <ESP8266WiFi.h> is annoying and was wondering if there was a way to turn it off.
I can pare down my program to the bare bones of the html send and receive, but it's 649 lines long now and I can't imagine anyone wading thru that much stuff much less running it.
I can pare down my program to the bare bones of the html send and receive, but it's 649 lines long now and I can't imagine anyone wading thru that much stuff much less running it.
The first thing that I would do given the program would be to determine what each Serial.print() in it was doing.