Data Transfer Validation

Sep 4, 2014 at 5:22 AM
Edited Sep 4, 2014 at 5:24 AM
If I post octets to or get octets from the server and get the http_response status code OK, does it mean I exactly get the same bytes in server or post the same bytes into server? I'm an embeded software engineer and don't know http too much, as my knowledge tells me, it is common to use CRC16 to validate a large number of data being transfer.
            http_resp = client.request(request).get();

    if (http_resp.status_code() == status_codes::OK)
        js_value = http_resp.extract_json().get();
Sep 11, 2014 at 8:16 PM
Hi joeccmou,

This discussion escaped my radar :)

You will have all the same guarantees that TCP provides, since that is what the HTTP request/response is going over. Take a look at Wikipedia:
This only guarantees that the server TCP socket on the other end received or not the data successfully. At the application layer the HTTP request on the client has no such knowledge.