I want to connect server to get the data using HttpConnection. I want to connect with one url and it goes to another url and it will get the data.
For this, I tried like, I will get response code 'HttpConnection.HTTP_MOVED_TEMP'(302). if http response code is equal to 302, then i close the connection and again connected to redirected url but i am not getting the response string.
What i made wrong..? or is there is any other idea or sample code to do this..?