入力フィールドを含む http フォームを、マイクロコントローラー コードに投入できる基本的なファイルに変換しようとしています。サーバーが値を受け入れていないため、基本的なものが欠けています。入力フィールドから名前と値のペアに変換しようとした後のコードは次のとおりです
<html>
<body>
<form action="website"
enctype="multipart/form-data" method="post">
<utcdatatime="2013-06-16T23:20:40"&leftsource="1"&rightsource="1"&automatictransfer="1"&eventstatus="1"&preferred="1">
</form>
</body>
</html>
入力フィールドのバージョンは次のとおりです。
<html>
<body>
<form action="website"
enctype="multipart/form-data" method="post">
<input type="text" name="utcdatatime" size="20" value="2013-06-16T23:20:40" />
<input type="text" name="leftsource" size="2" value="1" />
<input type="text" name="rightsource" size="2" value="4" />
<input type="text" name="automatictransfer" size="2" value="4" />
<input type="text" name="eventstatus" size="2" value="2" />
<input type="text" name="preferred" size="2" value="1" />
<input type="submit" value="Send" />
</form>
</body>
</html>
私は基本的な投稿を得ることができましたが、このコードはarduinoが構築して送信するにはかなり重いです.2行目の/もArduinoで動作させることはできませんが、私はそれを理解すると思います.アウト
POST /post_url.php HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: en-US
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)
Content-Type: multipart/form-data; boundary=---------------------------7dd35a2aab1494
Accept-Encoding: gzip, deflate
Content-Length: 1018
DNT: 1
Host: website
Pragma: no-cache
-----------------------------7dd35a2aab1494
Content-Disposition: form-data; name="customerkey"
3432-1GH4-88RG-7B2A
-----------------------------7dd35a2aab1494
Content-Disposition: form-data; name="responsetype"
simple
-----------------------------7dd35a2aab1494
Content-Disposition: form-data; name="filetype"
sandc_microat
-----------------------------7dd35a2aab1494
Content-Disposition: form-data; name="gatewayid"
0011223355AA
-----------------------------7dd35a2aab1494
Content-Disposition: form-data; name="leftsource"
1
-----------------------------7dd35a2aab1494
Content-Disposition: form-data; name="rightsource"
4
-----------------------------7dd35a2aab1494
Content-Disposition: form-data; name="automatictransfer"
4
-----------------------------7dd35a2aab1494
Content-Disposition: form-data; name="eventstatus"
2
-----------------------------7dd35a2aab1494
Content-Disposition: form-data; name="automatictransfer"
1
-----------------------------7dd35a2aab1494--
========================== POST END=================================