如何将变量内的webview传递给jsp函数? 所以请给我我的无知... 这是我的网址:“ https://payu.white.com/crm_sso.jsp”
我的参数
let subrno = "New",let pubncode = "FL",let pin_code ="600100"
let url = URL (string: "let url = NSURL (string: "https://payu.white.com/crm_sso.jsp")
let request = NSMutableURLRequest(url: url!)
request.httpMethod = "POST"
request.addValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
let post: String = "subrno="NEW"&pubncode="FL"&pin_code="600100"”
let postData: Data = post.data(using: String.Encoding.ascii, allowLossyConversion: true)!
request.httpBody = postData
webView.load(request as URLRequest)
但是我在Webview SSO认证失败中收到响应。