Code: Select all
if (www.connected()) {
Serial.println(F("Sending temperature reading to The Cloud..."));
www.fastrprint(F("GET "));
www.fastrprint(char_array_with_long_parms);
www.fastrprint(F(" HTTP/1.1\r\n"));
www.fastrprint(F("Host: ")); www.fastrprint("www.somewebsite.com"); www.fastrprint(F("\r\n"));
www.fastrprint(F("\r\n"));
www.println();
Serial.println(F("Sent."));
} else {
Serial.println(F("Connection failed"));
return;
}
char_array_with_long_parms is usually 289 chars. When I changed the parameters to be much shorter though (8 chars is what I tested with), the call succeeds (although doesn't log data on the site backend, of course). There's no web standard on URL sizing, and most browsers and servers can handle URL sizes in the thousands. Why am I unable to call a URL with under 300 chars?