cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: NTLM, HTTP 100 Continue, and IIS 6 / .NET 1.1

From: Xiuping Hu <xhu_at_aventail.com>
Date: Wed, 24 Mar 2004 13:49:29 -0800

> -----Original Message-----
> From: curl-library-bounces_at_cool.haxx.se [mailto:curl-library-
> bounces_at_cool.haxx.se]
> Sent: Wednesday, March 24, 2004 1:00 PM
> To: libcurl development
> Subject: Re: NTLM, HTTP 100 Continue, and IIS 6 / .NET 1.1
>
> > [Xiuping Hu] How you use the libcurl in you case --- as proxy? What
is
> > your option set? I use 7.11.1 with NTLM, still have problem to
access
> > IIS 5 with OWA 2000 application, it just hang there.
> >>
>
> nope, not as a proxy. just regularly; no proxy, no ssl.
>
> > [Xiuping Hu] One thing in common that I have to move the
Authenticate
> > header down to the last of the buffer load. That immediately work.
Hope
> > this help.
> >>
>
> how do you even do this? libcurl does this automatically for you...
did
> you re-build from source?
[Xiuping Hu]
Yes.

   result =
      add_bufferf(req_buffer,
                  "%s " /* GET/HEAD/POST/PUT */
                  "%s HTTP/%s\r\n" /* path + HTTP version */
                  "%s" /* range */
                  "%s" /* user agent */
                  "%s" /* cookie */
                  "%s" /* host */
                  "%s" /* pragma */
                  "%s" /* accept */
                  "%s" /* accept-encoding */
                  "%s" /* referer */
                  "%s"/* transfer-encoding */
                  "%s" /* proxyuserpwd */
                  "%s", /* userpwd */

                request,
                ppath,
                httpstring,
                (conn->bits.use_range && conn->allocptr.rangeline)?
                conn->allocptr.rangeline:"",
                (data->set.useragent && *data->set.useragent &&
conn->allocptr.u
agent)?
                conn->allocptr.uagent:"",
                (conn->allocptr.cookie?conn->allocptr.cookie:""), /*
Cookie: <da
ta> */
                (conn->allocptr.host?conn->allocptr.host:""), /* Host:
host */
                http->p_pragma?http->p_pragma:"",
                http->p_accept?http->p_accept:"",
                (data->set.encoding && *data->set.encoding &&
conn->allocptr.acc
ept_encoding)?
                conn->allocptr.accept_encoding:"", /* 08/28/02 jhrg */
                (data->change.referer &&
conn->allocptr.ref)?conn->allocptr.ref:
"" /* Referer: <data> <CRLF> */,
                te,
                (conn->bits.httpproxy && conn->allocptr.proxyuserpwd)?
                conn->allocptr.proxyuserpwd:"",
                conn->allocptr.userpwd?conn->allocptr.userpwd:""
                );

Move the proxyuserpwd and userpwd to the bottom of the list.

Thanks,

Xiuping
>
> Thanks,
> Alan
Received on 2004-03-24