0

I have a Form inside a webview with a captcha, the user fill-in the form and submit it, the response is shown from the processed URL to which the form is posted.

Now i want to read the HTML Source of the response page in order to show it to user after processing.

I have tried many solutions, but no luck yet. Solutions like How do I get the web page contents from a WebView?

and extracting-html-from-a-webview

There is another option to request the page via http, but i can't use that as the response page is generated after a form submission with image captcha, so i can't pass all required parameters to the URL in this case.

Looking for any hint or technique to get the html source of loaded page from android webview.

Thanks in advance.

Community
  • 1
  • 1
MT Shahzad
  • 101
  • 1
  • 7
  • Have you tried http://jsoup.org/ ? – Pavlos Dec 19 '13 at 12:06
  • I havn't tried Jsoup, how i will post the form in that? Actually i am loading the image captcha in android view with other hidden field, i am taking input from android interface and then submitting that form .. so can you let me know how i can use Jsoup in this case? – MT Shahzad Dec 19 '13 at 12:21
  • Just extract the html related to the form you need and then present it to the user ! – Pavlos Dec 19 '13 at 12:23
  • i am calling my own page with a form, which on post going to another website to fetch the information (so result page is generated as a result of form submission) .. i want to access this resulted page html – MT Shahzad Dec 19 '13 at 12:31
  • 1
    Please feel free to explain *completely and precisely* what you mean by "but no luck yet". – CommonsWare Dec 19 '13 at 12:32
  • Hmm i think i can't help you any further! Haven't dug so much inside Jsoup! – Pavlos Dec 19 '13 at 12:32
  • i have tried the solutions mentioned in the above links, but they didn't work for me .. no error .. seems that solutions are not working any more. – MT Shahzad Dec 20 '13 at 06:19

0 Answers0