cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: HTTP Error 401.2

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 4 Nov 2010 16:27:36 +0100 (CET)

On Thu, 4 Nov 2010, Tubati Narasimham wrote:

> HTTP Error 401.2 - Unauthorized: Access is denied due to server
> configuration.<br>Internet Information Services (IIS)</h2>

Then check the response headers to see what kind of auth method it wants. Use
-v for example.

> Command : curl -k -L -d @maxobj.xml
> http://wwwin-tools-dev-was6.cisco.com/itam/maximo/meaweb/es/XXAMS_MAXOBJECT/XXAMS_MAXCONFIG_Q-u
> ntubati:******

I hope you intended that -u to have a space in front of it.

> The WAS for the above mentioned url is a shared environment is protected via
> OAM.

The WAS? OAM? Sorry, I don't know what those are.

> Can we use curl for such environments for doing http post ?

If it uses one of the auth methods curl supports, yes!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-11-04