cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Issues Posting Data VPN -- thanks

From: mini thomas <mini_mol_thomas_at_yahoo.com>
Date: Fri, 22 Jun 2007 03:05:03 -0700 (PDT)

Thanks. that worked.
   
  ( I switched off the expect header
   
  curl_slist *headers = curl_slist_append("Expect:");
curl_easy_setopt(curl_handle, CURLOPT_HTTPHEADER, headers);
  )
   
  
Daniel Stenberg <daniel_at_haxx.se> wrote:
  On Thu, 21 Jun 2007, mini thomas wrote:

> Expect: 100-continue
> < HTTP/1.1 100 Continue
>
> After this I will get a timeout message
> or the application hangs

That indicates your server is being stupid so you better switch off the
Expect: header.

> Please note
> Content-Length: 1028
>
> If it is less than 1024 it works and the application gets a reply from the
> server

Yes, as then libcurl sends no Expect: header.

-- 
Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
       
---------------------------------
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. 
Received on 2007-06-22