http://an_example_link.com
but never from this site:
https://www.not_the_real_link.org
Note. I am the admin for both of these sites.
The obvious difference between these sites being the https and the .org
Here is the pertinent code I am using successfully to send texts:
Code: Select all
const char server[] = "www.an_example_link.com";
void loop() {
WiFi.setPins(WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
postData = postVariable + " 7.5 feet";
if (client.connect(server, 80)) {
client.println("POST /includes/send_text.php HTTP/1.1");
client.println("Host: www.an_example_link.com");
client.println("Content-Type: application/x-www-form-urlencoded");
client.print("Content-Length: ");
client.println(postData.length());
client.println();
client.print(postData);
Serial.println("Email Sent");
Serial.println(postData);
}
if (client.connected()) {
client.stop();
}
Serial.println(postData);
delay(3000);
}
Code: Select all
const char server[] = "www.an_example_link.com";
client.println("POST /includes/send_text.php HTTP/1.1");
client.println("Host: "www.an_example_link.com");
Code: Select all
const char server[] = "www.not_the_real_link.org";
client.println("POST /includes/send_text.php HTTP/1.1");
client.println("Host: "www.not_the_real_link.org");
My question is this: What code must be changed so that I can receive texts from this secure website?
Any help will be greatly appreciated.
Thank you.