The below is my POST method string, my question is when the Content-Length is bigger than standard IP packet length, whether the information could be sent by many times, e.g.: connect()+send()+send()+...+close(), connect(), send() and close() are standard socket of TCP/IP. Do the "Connection:" need be modified as "Keep-Alive" ?
"POST /ems/php/emud.php HTTP/1.0\r\n"
Thanks so much!
Content length defines how much data should be transferred in the current transaction.
If you are planning on sending continuous data, then you should NOT call close() and set connection to keep-alive.