我有一个用于从应用程序向服务器发送错误报告的HTML表单。我需要在程序中模拟此行为。相应的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>
logfileblabla&configfile=====mo+uselo&&&useremail=&=&=&+
- Pacerier