Sending POST request to HTTPS clould function by using sim 800l module

hiii, This is for Sending HTTPS POST request to clould function server by using sim800l gprs module.the main problem is its could not send the data to server but its connects the server and its shows bad request 400.I can't understand the problem.the code will be given below.i use NODEMCU-32S micro controller.

SerialMon.println("Performing HTTP POST request...");
String httpRequestData = String(requestBody) +"";
client.print(String("POST ") + resource + " HTTP/1.1\r\n");
client.print(String("Host: ") + server + "\r\n");
client.println("Connection: close");
client.println("Content-Type: application/json");
client.print("Content-Length: ");
client.println(httpRequestData.length());
client.println();
client.println(httpRequestData);


   timeout = millis();
 while (client.connected() && millis() - timeout < 10000L) {
   while (client.available()) {
     char c = client.read();
    SerialMon.print(c);
    timeout = millis();
  }
}


This is the output image.

please help me to find out the solution.

Code 400 pops up if service not available now and then when clicking on links.
Is it that error You get?

thanks for reply ,when click the link its does't shows any error.this problem happen in client side.

Yes. That's what an internet user is when clicking a link.