Search code examples
loadgethtmlbada

How can I get the HTML from a web page in Bada?


I don't know what other details I should provide. But I am very disoriented. I am not a web developer so I don't know what classes to use. It's not like I can tell the difference between HttpResponse, HttpHeader, HttpSession, HttpTransaction etc.


Solution

  • Have a look at Making HTTP Requests and Receiving HTTP Responses.

    The code in the second doc would normally go in a IHttpTransactionEventListener::OnTransactionCompleted method.

    The HTML you are seeking should then be the return value of HttpResponse::ReadBodyN.