AnsweredAssumed Answered

API: Create WindowsRecord - authentication

Question asked by slal on Aug 29, 2013
Latest reply on Aug 29, 2013 by Parag Baxi

Hello Everyone,

 

I have been trying to execute this curl request  to create a windows authentication record; but I  get the "301 Permanently Removed" Error.

What can be out of place here ?

 

Curl Request:

 

curl -H "X-Requested-With: Curl" -d "action=create&echo_request=1&title="group.testdc.windows.domaintest"&comments="Trial_RUn"&username="dummyuser123"&password="dummypass123"&windows_domain="TestDomain"&ntlm=1&use_agentless_tracking=1" -b "QualysSession=xxxxxxxxxxxxxxxxxxxxx; path=/api; secure" "https://qualysapi.qualys.eu/api/2.0/fo/auth/windows"

 

 

XML Output:

 

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<HTML><HEAD>

<TITLE>301 Moved Permanently</TITLE>

</HEAD><BODY>

<H1>Moved Permanently</H1>

The document has moved <A HREF="http://qualysapi.qualys.eu:443/api/2.0/fo/auth/windows/">here</A>.<P>

</BODY></HTML>

 

 

Can anyone help me out on what could exactly be the problem here ?

 

 

 

Cordially,

 

Suvansh

Outcomes