cURL / Mailing Lists / curl-users / Single Mail


Res: curl ntlm failing with domain part

From: Fábio Gomes <>
Date: Mon, 13 Sep 2010 11:26:05 -0700 (PDT)

Hi Dan,     It is a Linux. And yes, I already tried to escape the backslash with another backslash as you noted without success.   Thanks anyway.     On Mon, Sep 13, 2010 at 07:13:08AM -0700, Fábio Gomes wrote: >   I'm trying to use curl with --ntlm option. It authenticates correctly if I > only supply the username and password without the domain part: > > curl -u USER:PASS --ntlm  URI > >   But when I supply the domain part of the user/pass pair it fails: > > curl -u DOMAIN\USER:PASS --ntlm  URI > >   It works correctly with Firefox. > >   Is there anything missing? Does anyone have any tip? I've tried using quotes > and it didn't help either. You didn't say what OS you're running this on, but on Bourne-like shells, the backslash is interpreted then removed by the shell. Quotes around the "DOMAIN\USER:PASS" will cause the backslash to be sent as-is. I just tried that on a Linux box without a problem. >>> Dan ------------------------------------------------------------------- List admin: FAQ: Etiquette: ________________________________ De: Dan Fandrich <> Para: Enviadas: Segunda-feira, 13 de Setembro de 2010 15:00:12 Assunto: Re: curl ntlm failing with domain part

List admin:
Received on 2010-09-13