cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Stripped keep-alive header

From: Allen Chan <innovation101_at_gmail.com>
Date: Wed, 11 Jan 2006 18:04:03 +0900

I see, so I'd better head off looking for other causes then.

Also, I'm sorry i wasn't aware of the existence of
CURLOPT_PROXYTUNNEL, I used CURLOPT_HTTPPROXYTUNNEL with the stated
results. Am I wrong or is it really not in the API pages?

And btw, that was an extremely fast reply! Thanks again

On 1/11/06, Daniel Stenberg <daniel_at_haxx.se> wrote:
> 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