Closed divyanshub024 closed 3 years ago
same with me i can't detect post method
Unfortunately, this is a limitation of the Android native WebView. Check this open issue in the Google issue tracker about it: https://issuetracker.google.com/issues/36918490 However, as people are already doing, I think you can manage it injecting custom JavaScript code and intercept JavaScript events and send data between dart and JavaScript side with “JavaScript Handlers”. Also, if you need to intercept ajax and fetch requests, you can use the shouldInterceptAjaxRequest and shouldInterceptFetchRequest events.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.
Environment
Description
Current behavior:
Cannot intercept POST request using
androidShouldInterceptRequest
. All the requests I'm getting are just the GET method. I tried this on chrome browser and I can see post request after login. I tried with multiple sites but the same issue, can't get POST request. I assume all the requests are intercepting but they are coming as GET request.Also, I can't get form data in the post request. How can I get it?
Expected behavior:
Intercept the POST request.
Code