Hi guys
I have SSL/HTTPS address json
URL:rahpay.net/oauth/token
and get parameter to postman but arduino not client.connected
my code :
String title = "";
String headers = "";
String body = "";
bool finishedHeaders = false;
bool currentLineIsBlank = true;
bool gotResponse = false;
long now;
char host[] = "rahpay.net";
Serial.println(host);
if (client.connect(host, 443)) {
Serial.println("connected");
String URL = "/oauth/token";
Serial.println(URL);
client.println("POST " + URL + " HTTP/1.1");
client.println("Host: rahpay.net");
client.println("User-Agent: Arduino/1.0");
client.println("Connection: close");
client.println("Content-Type: application/x-www-form-urlencoded;");
client.print("Content-Length: ");
// client.println(requestData.length());
client.println();
// client.println(requestData);
Serial.println("[INFO] HTTP POST Completed");
}..
No problem with other security addresses
exp: hub.mmaviot.com
but rahypay.net/oauth/token has problem