Android 从截取http响应中解析formdata
我从android的http响应中获取formdata。请告诉我如何从formdata获取post数据。以下是从http URL请求收到的响应(截取已用于http请求):Android 从截取http响应中解析formdata,android,http,android-volley,httpresponse,form-data,Android,Http,Android Volley,Httpresponse,Form Data,我从android的http响应中获取formdata。请告诉我如何从formdata获取post数据。以下是从http URL请求收到的响应(截取已用于http请求): 这里,对表单中的post数据进行编码。请让我知道如何解析响应以获取post数据 谢谢,什么是post数据?post数据可以是我们可以在客户端接收到的任何字符串。您没有给出答案。这里,表单的值是“j/1Pv8624GmE/EN9QpGcbC72eecrLPTDabltJNpGikgERxgV8/BH4rRxxI/u1+OI3
这里,对表单中的post数据进行编码。请让我知道如何解析响应以获取post数据
谢谢,什么是post数据?post数据可以是我们可以在客户端接收到的任何字符串。您没有给出答案。这里,表单的值是“j/1Pv8624GmE/EN9QpGcbC72eecrLPTDabltJNpGikgERxgV8/BH4rRxxI/u1+OI3D7LJNL97UTQCLI7DGDTVCG2GBRAUQYHV8RDSXYQT8=”。有没有一种方法可以从formdata中获取解码后的值?只需一点字符串操作就很容易了。使用String.indexOf()和String.substring()。未编码。
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
</title>
</head>
<body>
<form method="post" action="./MainData" id="form1">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="j/1Pv8624GmE/EN9QpGcbC72eecrLPTDabltJNpGikgERxgV8/BH4rRxxI/u1+oI3d7LjNl97utqCCli7dGDtvCg2GbRAuQYHV8rDsxYqt8=" />
<div>
</div>
</form>
</body>
</html>