1
我有以下形式:如何通过POST上传变量文件,改造2
<form method='post'><textarea name='xml' cols=70 rows=20></textarea><input type='submit'></form>
<form method="post" enctype="multipart/form-data">
<input type="file" name="input" accept="xml" />
<input type="submit" value="Upload" />
</form>
我怎么能在xml
变量通过POST
上传文件?使用Retrofit 2
。
你应该把从你的要求没有头的身体。 – Hamed
我有textarea,我需要发送XML查询,然后按按钮提交,然后我会得到一个答案。我怎样才能在改造?如何指定数据应该在'
Retrofit不会将数据注入HTML表单。它将数据作为POST请求发送到该URL。 –