Hello, I have an Arduino Uno and an ethernet-shield from dfrobot. Now I wolud like to make a program that calls a php-file on a server and get's it's response. I use the library ArduinoHttpClient. Meanwhile I can connect to the internet but when I make a GET I never get a response (StatusCode -3, timeout). Is it possible that my site is on https://... ? Part of my code:
#include <ArduinoHttpClient.h>
#include <SPI.h>
#include <Ethernet.h>
.........
char serverAddress[] = "www.mysite.ch"; // server address
int port = 443;
.........
.........
void loop()
{
Serial.println("making GET request");
client.get("arduino/funktionen.php?funktion=1");
// read the status code and body of the response
int statusCode = client.responseStatusCode();
String response = client.responseBody();
Serial.print("Status code: ");
Serial.println(statusCode);
Serial.print("Response: ");
Serial.println(response);
Serial.println("Wait five seconds");
delay(5000);
}
Thanks for your help, Peter