About HTTP-POST Method using

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

About HTTP-POST Method using

532件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by xiaoqing025 on Fri Jul 26 00:25:34 MST 2013
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"
  "Host: 192.168.52.69\r\n"
  "Connection: close\r\n"
  "Content-Type: application/x-www-form-urlencoded\r\n"
  "Content-Length: 10000\r\n"
  "\r\n"
  "information=xxxxxxxxxxxxxxxxx"
};

Thanks so much!
0 件の賞賛
返信
1 返信

510件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by giedrius on Fri Jul 26 04:25:49 MST 2013
Hello,

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.
0 件の賞賛
返信