How to use Cookies in HttpURLConnection for ANDROID?

view story

http://stackoverflow.com – Hi I am trying to create Application for Asterisk Interface, The configuration setup has been done properly as I have double checked it. It seems the reason why I can't access Config files from Asterisk server has to do with connection..I need to use cookie for connecting to the same instance of login sessin. but so far I am unable to use Cookie Properly.... need little help. I am supposed to login by press of button1 (bt1) & get config file by button2 (btn2) public class AsteriskInterface extends Activity { private static final String TAG = " AsteriskInterface"; EditText ed1; Button (HowTos)