Is your "response URL" not the same as your "url" var that you feed to
HttpPost()? If I'm getting this right, this means your server is
bouncing the request through to another url, your "response URL"? If
this is the case, why not just send the extra params that you want as
a part of the response content.. Send your response data back to your
app in XML or JSON [sending it in straight HTML isn't proper.. HTML is
made for laying out webpages, not raw data] and send those params as
either XML elements or JSON Objects. This will make it really easy for
you parse the response as Java has pretty good support for these [I've
personally worked with parsing JSON in Java and it's quite easy].

Hope this helps.

-Nick




On Apr 6, 1:59 pm, jw <[email protected]> wrote:
> Hi all,
>
> I have a problem. I'm doing a http post request to a URL like this;
>
> DefaultHttpClient httpclient = new DefaultHttpClient();
> HttpPost httppost = new HttpPost(url);
> HttpResponse response = httpclient.execute(httppost);
>
> I am able to get the response content (html in this case) but I would
> like to be able to get the url of the response. Is there a way? Or
> could i use some other technique to do the post request and retrieve
> the url?
>
> The repsonse url is lkewww.url.com?x=1&y=2and would like to get the
> parameter values, I've tried to use the getParams().getParameter() on
> the HttpResponse object without any success. So if anyone has a
> solution to get the parameters without getting the url, that's ok :)
>
> Thanks in advance.
>
> /J

-- 
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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to