cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Stripped keep-alive header

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 11 Jan 2006 09:29:24 +0100 (CET)

On Wed, 11 Jan 2006, Allen Chan wrote:

> When using libcurl, I noticed that my Proxy-Connection: Keep-Alive header
> gets stripped and instead turned into ----------------: ---------- (exact
> number of dash noted)

You mean it gets changed literally to that exact sequence? That is certainly
not done by libcurl.

> headerlist = curl_slist_append(headerlist, "Content-Length: 0");

What is this good for?

> headerlist = curl_slist_append(headerlist, "Proxy-Connection: Keep-Alive");

This is already done by libcurl by default.

> headerlist = curl_slist_append(headerlist, "Pragma: no-cache");

This too is done by libcurl by default.

> I need the keep-alive header to get a persistent connection through HTTP 1.0
> for video/audio conferencing.

Right, and that's why libcurl uses it!

> Is there a way to just HTTP CONNECT to a server?

Yes, by using CURLOPT_PROXYTUNNEL.

To me it seems like you're trying too hard in finding alternative ways to do
what libcurl already offers with plain options.

> Btw, i noticed that the download page still doesn't have the latest libcurl
> binaries of 7.15.1 on Windows XP / MSVC. I could provide mine. If you want
> zlib, ssl, and kerberos too that is.

No? I can see lots of them. Unless you mean the package(s) specificly marked
as "MSVC" (opposed to the ones marked "Generic").

And sure, if you can provide better/additional packages then we're interested
and grateful! Mail such packages/links/announcements to curl-release_at_haxx.se
and we'll make sure to update things accordingly.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-01-11