cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: using libcurl to invoke WebDAV methods on Exchange

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 21 Dec 2005 23:15:58 +0100 (CET)

On Wed, 21 Dec 2005, Andrew Biggs wrote:

> That is consistent with my experience as well, in that my write_data
> callback does in fact get called when the server's response is text/html and
> has a known length. But, when the server returns a response that has
> Transfer-Encoding: chunked, and the Content-Type is text/xml, I get nothing.

Not here. Using the exact same code I just showed you, and changing the URL to
"http://daniel.haxx.se/chunky.cgi" does instead output this:

< HTTP/1.1 200 OK
< Date: Wed, 21 Dec 2005 22:13:07 GMT
< Server: Apache/2.0.54 (Debian GNU/Linux) PHP/4.4.0-2
< Keep-Alive: timeout=15, max=100
< Connection: Keep-Alive
< Transfer-Encoding: chunked
< Content-Type: text/xml
*** write_data has been called: 10 bytes
* Connection #0 to host daniel.haxx.se left intact

('chunky.cgi' is a CGI script I just wrote that does 'ls' on a dir in which I
just made a few single-letter file names.)

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-12-21