cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

RE: Problem with SecurID + NTLM Authentication

From: Roth, Kevin P. <KPRoth_at_MAPLLC.com>
Date: Tue, 6 Jan 2004 15:54:10 -0500

-----Original Message-----
From: tdf
Sent: Tuesday, January 06, 2004 1:33 PM

> I've set up a static password for the SecurID test
> account and that portion of the authentication works
> fine. However, cURL does not seem to be following the
> SecurID redirect.

> I'm using curl-7.10.6-7 and the command line I'm using
> is:

> curl -x <proxy_server_address>:80 -i
> --location-trusted --ntlm -u <account>:<password>
> -d "username=<account>&passcode=<password>"
> https://<owa_server_name>/WebID/sdiis.dll -v

<<snip>>

> Refresh: 1; URL=/

I could be wrong, but I don't think curl supports "Refresh" style redirects. When you specify --location-trusted, you're telling curl to go ahead and follow *this* type of redirect:

Location: http://owa_server_name/

The "URL" it provides appears rather generic, so it should be possible for you to add a second curl command that requests that page again (providing the NTLM authentication again and also providing the cookie you received from the first request). That's probably your best bet here.

- Kevin

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op%cck
Received on 2004-01-06

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET