Home > Software engineering >  Bytes received in http are of variable sizes. Can I assume words "GET" or POST" or ,&
Bytes received in http are of variable sizes. Can I assume words "GET" or POST" or ,&

Time:09-27

Bytes received in http request are of variable sizes in read() function call.

Can I atleast assume:

3 characters word: "GET"
4 characters word: POST" 
6 characters word: "DELETE"

will be delivered to my same read() function call

Or can I get GE in first read and T in second read to make the "GET" word of HTTP get requests.

Can any one please tell me this?

I am using linux kernel 5.11.0-36-generic with command uname -r may be kernel version info needed to tell for read system call question specific to http protocol or may be not

CodePudding user response:

Can I atleast assume: will be delivered to my same read() function call

No.

can I get GE in first read and T in second read to make the "GET" word of HTTP get requests.

Yes.

  • Related