I don't know what "response URL" means. The only URLs in an HTTP response
that come to mind are: 1) the "Location" response header for a 301/302
status code, 2) some string in the response data (such as an HTML anchor
element) that you want to interpret as a URL.

On Tue, Apr 6, 2010 at 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 lke www.url.com?x=1&y=2 <http://www.url.com/?x=1&y=2>and 
> 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]<android-developers%[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.
>

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