Jump to content


Photo

API Domain List Code 451


  • Please log in to reply
No replies to this topic

#1 Gene

Gene
  • Members
  • 0 posts

Posted 29 April 2011 - 01:54 PM

Can any one help with why not matter what Method I call I get <Code>451</Code> <Sttring> Invalid Request </String> returned
I have tried different Coding and have verifed that my IP is allowed and the Password is correct.

VB Script:
set xmlHttp = CreateObject("Microsoft.xmlHttp")

'Read file
Set objFSO = CreateObject("Scripting.FileSystemObject")
Const ForReading = 1
Set objFile = objFSO.OpenTextFile ("c:\vbfiles\spaminfo.txt", ForReading)

strNextLine = objFile.ReadAll

SendData = strNextline





isAsynCall = False
Wscript.echo Senddata
Dim o
Set o = CreateObject("MSXML2.XMLHTTP")
o.open "Post", "http://10.8.24.5:8000/cgi-mod/api.cgi?password=Chupre6Ax, False

o.send


Wscript.echo o.responseText


WScript.Echo "The end"

Spaminfo.txt:
<?xml version="1.0" encoding="UTF8"?>
<methodCall>
<methodName>config.list</methodName>
<params>
<param>
<value>
<struct>
<member>
<name>child_type</name>
<value>
<string>
<![CDATA[domain]]>
</string>
</value>
</member>
<member>
<name>path</name>
<value>
<string></string>
</value>
</member>
<member>
<name>type</name>
<value>
<string>
<![CDATA[global]]>
</string>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>


Any Help is greatly appreciated.