cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem found testing the sample code

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 28 Apr 2016 14:02:08 +0200 (CEST)

On Thu, 28 Apr 2016, lyx wrote:

> /* Send the request. Real applications should check the iolen
> * to see if all the request has been sent */

I think you need to read this comment above an extra time.

> res = curl_easy_send(curl, request, strlen(request), &iolen);

See, there's no checking 'iolen' here. How much of the request was sent?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-04-28