cURL / Mailing Lists / curl-library / Single Mail


[ curl-Bugs-905365 ] fresh_connect & ntlm

From: <>
Date: Thu, 26 Feb 2004 12:46:58 -0800

Bugs item #905365, was opened at 2004-02-26 20:46
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Category: http
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Christopher R. Palmer (crpalmer13)
Assigned to: Daniel Stenberg (bagder)
Summary: fresh_connect & ntlm

Initial Comment:
Running with either curl 7.11.0 or the 20040226 nightly
snapshop results in the following problem. Doing ntlm
authentication seems to require a connection reuse and
the fresh_connection option breaks this. For me the
following tiny program goes into a loop requesting the
first page. The URL is a page on a windows machine
that requires ntlm authentication.

#include <stdio.h>
#include <stdlib.h>
#include "curl/curl.h"

main(int argc, char **argv)
    CURL *c;

    c = curl_easy_init();
    curl_easy_setopt(c, CURLOPT_HTTPAUTH,
    curl_easy_setopt(c, CURLOPT_VERBOSE, 1L);
    curl_easy_setopt(c, CURLOPT_FRESH_CONNECT, 1L);


You can respond by visiting:
Received on 2004-02-26