Does the web server support the entire HTTP request / response?

Just a quick question. I am creating a web application where C ++ communicates with a php script via HTTP requests / responses. The data given back and forth is pretty small ~ 36 bytes. But I plan to connect many computers, often communicate with the server. I did the math and I could have gigabytes of data transfer per month. This is not too much of a problem, but if the bandwidth included the request / response headers, the request size would be around ~ 560 bytes. This is about 16 times more than I planned ... That would be a lot. If anyone knew how hosts determine bandwidth and can share, that would be great. Thanks.

+2


a source to share


3 answers


Assuming the web host is running Apache, you can assume the module is being mod_bw

used to manage bandwidth (this is the standard). In this case, the requests are not part of the traffic being monitored, the only control over the requests is their quantity, they are not considered "bandwidth" although this is technically still there. Headers and frames can count, but



While you might want to look at the documentation, there doesn't seem to be much: https://svn.apache.org/repos/asf/httpd/sandbox/mod_bw/mod_bw.txt

+3


a source


You should probably check with your host about this, but the term "bandwidth" usually refers to TCP traffic, not HTTP. And by that definition - yes, HTTP headers are included.



+2


a source


Yes, the bandwidth always includes HTTP headers as they are part of the response being sent. (It probably even includes the packet headers)

0


a source







All Articles