How to send HTTP header and HTTP body separately using socket?

前端 未结 0 353
春和景丽
春和景丽 2020-12-29 02:19

I can send both header and body this way,

std::string complete_response = "HTTP/1.1 200 OK\\r\\nContent-Length: 13\\r\\nConnection: close\\r\\n\\r\\nHell         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题