Arduino Ethernet Post method

Hello Everyone,
I m trying to post some data to a server with sending command from browser. everthing is fine I can send command and arduino processing post method. but when I read data from txt filewhich is created by websitewhile posting and it is empty. also I can see data lenght is recognized by server and it is written in txt file. same code works in one skecth and doesnt another. any ide to solve problem.

h = (int) dht.readHumidity();
t = (int) dht.readTemperature();
Serial.println(analogRead(A0));
String a = String(k());
String b = String(m());
String data = "Sicaklik=";
data.concat(t);
data.concat("&Nem=");
data.concat(h);
data.concat("&KAPI=");
data.concat(a);
data.concat("&MUDAHELE=");
data.concat(b);
if (client.connect("tzty.cf",80)) { 
client.println("POST /kameratest/post.php  HTTP/1.1");
client.println("Host: www.tzty.cf");
client.println("Content-Type: application/x-www-form-urlencoded");
client.println("Connection:close");
client.print("Content-Length:");
client.println(data.length());
client.println();
client.print(data);

client.flush();
client.stop();
}

this code works fine
and here is ouput of it

Array
(
    [Sicaklik] => 22
    [Nem] => 25
    [KAPI] => 0
    [MUDAHELE] => 1
)

Array
(
    [HTTP_CONNECTION] => close
    [CONTENT_TYPE] => application/x-www-form-urlencoded
    [CONTENT_LENGTH] => 36
    [HTTP_HOST] => www.tzty.cf
    [DOCUMENT_ROOT] => /home/tztycf/public_html
    [REMOTE_ADDR] => 95.12.62.220
    [REMOTE_PORT] => 49166
    [SERVER_ADDR] => 107.189.1.118
    [SERVER_NAME] => www.tzty.cf
    [SERVER_ADMIN] => webmaster@tzty.cf
    [SERVER_PORT] => 80
    [REQUEST_URI] => /kameratest/post.php
    [SCRIPT_FILENAME] => /home/tztycf/public_html/kameratest/post.php
    [QUERY_STRING] => 
    [SCRIPT_URI] => http://www.tzty.cf/kameratest/post.php
    [SCRIPT_URL] => /kameratest/post.php
    [SCRIPT_NAME] => /kameratest/post.php
    [SERVER_PROTOCOL] => HTTP/1.1
    [SERVER_SOFTWARE] => LiteSpeed
    [REQUEST_METHOD] => POST
    [PHP_SELF] => /kameratest/post.php
    [REQUEST_TIME_FLOAT] => 1461348398.43
    [REQUEST_TIME] => 1461348398
    [argv] => Array
        (
        )

the other one which doesnt work :frowning: :frowning:

  if(readString.indexOf("sdkartoku")>=0){
    
  String data = "123456789 test";

 EthernetClient client1;
if (client1.connect("tzty.cf",80)) { 
client1.println("POST /kameratest/post.php  HTTP/1.1");
client1.println("Host: www.tzty.cf");
client1.println("Content-Type: application/x-www-form-urlencoded");
client1.println("Connection:close");
client1.print("Content-Length:");
client1.println(data.length());
client1.println();
client1.println(data);

 client1.flush();
client1.stop();
  }

  }

and output for the one which doesnt work but reads content lenght :frowning: :frowning: :frowning:

 Array
(
)

Array
(
    [HTTP_CONNECTION] => close
    [CONTENT_TYPE] => application/x-www-form-urlencoded
    [CONTENT_LENGTH] => 14
    [HTTP_HOST] => www.tzty.cf
    [DOCUMENT_ROOT] => /home/tztycf/public_html
    [REMOTE_ADDR] => 81.213.172.42
    [REMOTE_PORT] => 49153
    [SERVER_ADDR] => 107.189.1.118
    [SERVER_NAME] => www.tzty.cf
    [SERVER_ADMIN] => webmaster@tzty.cf
    [SERVER_PORT] => 80
    [REQUEST_URI] => /kameratest/post.php
    [SCRIPT_FILENAME] => /home/tztycf/public_html/kameratest/post.php
    [QUERY_STRING] => 
    [SCRIPT_URI] => http://www.tzty.cf/kameratest/post.php
    [SCRIPT_URL] => /kameratest/post.php
    [SCRIPT_NAME] => /kameratest/post.php
    [SERVER_PROTOCOL] => HTTP/1.1
    [SERVER_SOFTWARE] => LiteSpeed
    [REQUEST_METHOD] => POST
    [PHP_SELF] => /kameratest/post.php
    [REQUEST_TIME_FLOAT] => 1465073155.82
    [REQUEST_TIME] => 1465073155
    [argv] => Array
        (
        )

    [argc] => 0
)
client1.println();
client1.println(data);

 client1.flush();
client1.stop();

Send some data to a server. Completely ignore any response from the server. Wonder why the server is not processing the data correctly. Well, stop ignoring the server, and find out!