现在我有自己的登录界面,有webSEAL服务,应该如何在我自己的登录界面里调用webSEAL服务?
使用ajax?iframe?nodejs http(下面是nodejs http的代码,webSEAL会报错如下)?
最好是可以中断登录过程。
先谢谢了。
var http = require('http');
var querystring = require('querystring');
var post_options = {
host: 'ip,
port: '80',
path: '/pkmslogin.form',
method: 'POST',
auth: 'username:123456',
headers: {
'Content-Type': 'text/html'
}
};
var post_data = querystring.stringify({
'login-form-type':'pwd'
});
// Set up the request
var post_req = http.request(post_options, function(res) {
res.setEncoding('utf8');
res.on('data', function (chunk) {
console.log('Response: ' + chunk);
});
});
// post the data
post_req.write(post_data);
post_req.end();
webSEAL 错误信息:
Diagnostic Information
Method: POST
URL: /pkmslogin.form
Error Code: 0x38cf0430
Error Text: Not Implemented
WebSEAL服务端返回的页面
Server Error
Server Error
<
p> Access Manager WebSEAL could not complete your request due to an unexpected error.
Diagnostic Information
Method: POST
URL: /pkmslogin.form
Error Code: 0x38cf0430
Error Text: Not Implemented
Solution
Provide your System Administrator with the above information to assist in
troubleshooting the problem.
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
认证高级PHP讲师