cURL / Mailing Lists / curl-library / Single Mail


Leftovers after chunking while using the easy interface

From: SAD, Daniel <>
Date: Thu, 18 Oct 2012 11:30:29 +0000

Dear all,

I use libcurl 7.21.7 to make requests to a web service. The web service answers with chunked encoding.

As my process is sequential, I use the easy interface and not the multi one.

This works perfectly except when I use it behind our corporate proxy.

In this case, libcurl randomly returns before having received all the data. This seems to occur only with big chunks 0x2000 (8192) bytes.

The next request sent to the server gets then mixed with the previous data.

CURLOPT_VERBOSE gives "Leftovers after chunking: nnn bytes".

Could you help me to understand why libcurl returns leaving pending data, and what I should do to solve this problem ?

Daniel Said

Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et secrets. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Si vous n'etes pas le bon destinataire, nous vous demandons de ne pas lire, copier, utiliser ou divulguer cette communication. Nous vous prions de notifier cette erreur a l'expediteur et d'effacer immediatement cette communication de votre systeme.

Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. If you are not the right addressee, we ask you not to read, copy, use or disclose this communication. Please notify this error to the sender and erase at once this communication from your system.

List admin:
Received on 2012-10-18