Home > database >  PB use MSXML2. ServerXMLHTTP way failed to send data
PB use MSXML2. ServerXMLHTTP way failed to send data

Time:09-21


//HTTP protocol
Ls_xmlhttp [1]="Msxml2. XMLHTTP. 6.0"
Ls_xmlhttp [2]="Msxml2. XMLHTTP. 5.0"
Ls_xmlhttp [3]="Msxml2. XMLHTTP. 4.0"
Ls_xmlhttp [4]="Msxml2. XMLHTTP. 3.0"
Ls_xmlhttp [5]="Msxml2. XMLHTTP"

//HTTP access object
Lole_token=CREATE oleobject
//lole_token. ConnectToNewObject (" Microsoft. XMLHttp ")
FOR ll_flag=1 TO UpperBound (ls_xmlhttp)
Lole_token. ConnectToNewObject (ls_xmlhttp [ll_flag])
NEXT

//into the parameter
{ls_data="https://bbs.csdn.net/topics/" userName ":" '+ ls_uname + ", "password" : "' + ls_password + '"}'

//access HTTP
Lole_token. Open (" POST ", ls_url, FALSE)
Lole_token. SetRequestHeader (" the content-type ", "application/json")
Lole_token. SetRequestHeader (' Content - Length, the String (Len (ls_data)))
Lole_token. Send (ls_data)

The execution times wrong:
Error: Error calling external object function the send at line 99
By the interface test, the test tool interface is pass, but the pb in runtime, the send () error
This is there any way to get to a specific reason for the error?
  • Related