[android-developers] WebView and HTTP Post requests

2009-07-15 Thread DGupta
So I'm attempting to connect to the Tumblr Dashboard using an HTTP Post. The Activity uses a WebView and I do an http post after creating the webview, but the redirect_to in the HTTP Post doesn't work with the WebView. I know my post works and isn't throwing errors, however I need the HTTP Post to

[android-developers] WebView and HTTP Post requests

2009-07-15 Thread Jason Proctor
>DGupta wrote: >> So I'm attempting to connect to the Tumblr Dashboard using an HTTP >> Post. The Activity uses a WebView and I do an http post after creating >> the webview, but the redirect_to in the HTTP Post doesn't work with >> the WebView. I know my post works and isn't throwing errors,

[android-developers] WebView and HTTP Post requests

2009-07-15 Thread Jason Proctor
just reverse what i did :-) after your request completes, get the Apache CookieStore object from your post object (post.getCookieStore()) and copy the relevant cookies to the WebKit CookieManager (CookieManager.getInstance()). in theory, this should result in those cookies being sent in future

[android-developers] WebView and HTTP Post requests

2009-07-16 Thread Jason Proctor
here's your problem, i think -- the getValue() method of the Apache Cookie class returns the value of the cookie, ie from jsessionid=blah would retrieve "blah" -- but -- the setCookie() method of the WebKit CookieManager class takes a parameter called "value", but it's referring to something