Android的饼干问题的应用 [英] android cookies issue in application
问题描述
HY
我正在开发一个具有连接到网络服务器和下载和阅读JSON格式数据的应用程序。我能够在它登陆,但每当我尝试获取其它数据,则返回失败。
hy i am developing an application that has to connect to a webserver and download and read json format data. i am able to login in it, but whenever i try to fetch other data, it returns failure.
我试图在浏览器同样的事情,通过复制,粘贴使用GET方法的URL和它的作品。应用程序使用Cookie来存储数据。
i tried the same thing on browser by copy-pasting the urls using get method and it works. the application uses cookies to store the data.
如何存储cookie在Android应用程序和放大器;它们发送到服务器?
how can i store cookies in an android application & send them to server?
推荐答案
只是检查android开发参考:的 http://developer.android.com/reference/java/net/HttpURLConnection.html
Just check android development reference: http://developer.android.com/reference/java/net/HttpURLConnection.html
有就是会话Cookies设置段落; - )
There is "Sessions with Cookies" paragraph ;-)
这篇关于Android的饼干问题的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!