cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to configure the library to behave like the command line?

From: Michael Wood <esiotrot_at_gmail.com>
Date: Fri, 7 Jan 2011 18:41:14 +0200

On 7 January 2011 17:40, Matt Nelson <mattjnelso_at_gmail.com> wrote:
> Hi,
>
> I'm on a Windows XP 64 bit machine running Visual Studio 2008 and I may be
> doing something really stupid (probably), but I downloaded curl.exe (version
> curl-7.21.0-win64-nossl) and running it with the following parameters from a
> command line works fine:
> curl --ntlm -u : http://sharepoint.domain.com/path/to/file.txt

Do this and curl will generate a sample C program for you:

curl --ntlm -u : http://sharepoint.domain.com/path/to/file.txt
--libcurl example.c

(i.e. just add a "--libcurl filename.c" on the end of the curl command.)

But perhaps the versions of the curl library that you downloaded do
not have NTLM support compiled in. You might want to download the
source code and compile it yourself with whatever options you need
enabled.

-- 
Michael Wood <esiotrot_at_gmail.com>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-07