cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl download limit

From: Rafi Neumann <rafineu_at_gmail.com>
Date: Mon, 21 Sep 2009 18:29:56 +0100

We are having trouble with using POST in curl_init, in that it downloads far too much data. The code looks as follows:

$EbHandle = curl_init($EbURL);
  curl_setopt($EbHandle, CURLOPT_POST, 1);
  curl_setopt($EbHandle, CURLOPT_POSTFIELDS, $url_travel);
  curl_setopt($EbHandle, CURLOPT_RANGE, "0-7120");
  curl_setopt($EbHandle, CURLOPT_FOLLOWLOCATION, 1);
  curl_setopt($EbHandle, CURLOPT_HEADER, 0);
  curl_setopt($EbHandle, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($EbHandle, CURLOPT_HTTPHEADER, array("Content-Type:text/xml"));
  curl_setopt($EbHandle, CURLOPT_TIMEOUT, 15);

Does anyone know how I can set a download limit?

Thanks.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-09-21