I have written an Service that uses commons http client for receiving
content from the web.

I call it by using the aidl defined binderInterface:


mHTTPService.doRequest(mmiEvent.getContentUrl(),
HTTPRequest.HTTP_METHOD_POST, "gui="+mmiEvent.getData());

The last parameter what i want to send as requestParameter

There is a callback registered that my service pushs the received
content back to. To display the content I use a handler where within I
do:

mWebView.loadDataWithBaseURL(BASE_URL,(String)msg.obj, "text/html",
"utf-8",FAIL_URL);

And.. my POST requested Webpage is displayed!


On 7 Jan., 17:06, Jakob Sachse <[email protected]> wrote:
> i think the second approach is the way to go here:
> looking at the docs i found : public void loadData(String data, String
> mimeType, String encoding)  ,
> which will most likely take my markup as first parameter. i'll see and
> keep this thread updated.
>
> On 7 Jan., 16:54, Jakob Sachse <[email protected]> wrote:
>
> > or could i possibly load the content outside thewebviewby using
> > commons http client, and let the
> > returned markup be rendered by thewebview?
>
> > On 7 Jan., 16:51, Jakob Sachse <[email protected]> wrote:
>
> > > hey,
>
> > > is there a way of loading an URL with thePOSTMethod instead of GET?
> > > I have a very long xml String that I need to deliver to a .JSP ,
> > > GET Parameters don't allow the needed parameter length.
>
> > > I am looking for something like:
> > > mWebView.loadUrl("http://foo.bar/my.jsp","POST",params);
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to