What is effect of specifying http content-length that is larger than the actual body length?
This is because I am using libcurl to make http-post massages, and I dont want have a case whereby the specified content-length is smaller than the actual body length.

Content length should always match the amount of data you send. If it is shorter, you'll miss data, if it is longer then the receiver may wait for data that will never be sent.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.