Hello. The application has implemented the login and password for authorization. And after entering this data, I immediately call another Activity from the WebView. Question. How to transfer this data to the WebView so that it sends a POST and does not have to enter the authorization data through the WebView itself. And is it possible at all?

  • Who owns the page that opens in WebView? You? - Andrew Paramoshkin
  • @AndrewParamoshkin yes, i - iKey
  • one
    The easiest option is to open the page by passing the parameters to the querystring there. For example: http://example.com/auth?log=base64login&pwd=base64password . On the side of the page - parsit querystring, get data from there and throw on the post-request. Not the most beautiful solution, but working 100% - Andrew Paramoshkin
  • @AndrewParamoshkin is a good idea. thank. - iKey
  • If the session is remembered in cookies, you can pre-form the correct cookie in js. - sercxjo

0