相关疑难解决方法(0)

如何在POST请求中模仿HTML表单提交?

我有HTML表单,用于从应用程序发送bug报告到服务器.我需要以编程方式模仿这种行为.相应的POST请求(或一系列请求)是什么样的?

<form name="bugreport" method="post" enctype="multipart/form-data" action="http://my-server.com/bugreport.php">
    <div name="SentData">
        <textarea name="logfile" class="UserVisible"></textarea><br>
        <textarea name="configfile" class="UserVisible"></textarea><br>
    </div>
    <textarea name="usercomment" class="invisible"></textarea><br>
    <input name="useremail" type="text" class="invisible">
    <input class="invisible" type="submit" value="Send">
</form> 
Run Code Online (Sandbox Code Playgroud)

forms post http http-post

22
推荐指数
1
解决办法
5万
查看次数

标签 统计

forms ×1

http ×1

http-post ×1

post ×1