cURL / Mailing Lists / curl-library / Single Mail

curl-library

[ curl-Bugs-905365 ] fresh_connect & ntlm

From: SourceForge.net <noreply_at_sourceforge.net>
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:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=905365&group_id=976

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"

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

    curl_global_init(CURL_GLOBAL_ALL);
    c = curl_easy_init();
    curl_easy_setopt(c, CURLOPT_HTTPAUTH,
CURLAUTH_ANY);
    curl_easy_setopt(c,
CURLOPT_URL, "http://192.168.0.3/localstart.asp");
    curl_easy_setopt(c, CURLOPT_VERBOSE, 1L);
    curl_easy_setopt(c, CURLOPT_FRESH_CONNECT, 1L);
    curl_easy_perform(c);
}

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=905365&group_id=976
Received on 2004-02-26