B4J Question webView postUrl not supported? [SOLVED]

Discussion in 'B4J Questions' started by mc73, Aug 29, 2018.

  1. mc73

    mc73 Well-Known Member Licensed User

    I use the postUrl in my android webViews without a problem. Here's the code used:
    Dim bytesOfPOstRequest() As Byte
    Dim jo As JavaObject
    "postUrl",Array As Object(PostUrl,bytesOfPOstRequest))
    Tried doing the same in b4j, but I get
    java.lang.RuntimeException: Method: postUrl not found in: javafx.scene.web.WebView
    Is this a dead end or there exists another approach? Actually trying downloading the url, using httpUtils, is not functioning due to javascript checks performed by the server.
    Thank you.
  2. Erel

    Erel Administrator Staff Member Licensed User

    There is no similar API in JavaFX WebView. You can inject JavaScript that will make a POST request.
    mc73 likes this.
  3. mc73

    mc73 Well-Known Member Licensed User

    Indeed, this solved the problem, thank you!
  4. Pablo Torres

    Pablo Torres Active Member Licensed User

    Hi, how did you solve it? I have the same problem right now and I nedd a little help
    Can you post a little example?

    Many thanks
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice