Merge pull request #2080 from node-red-hitachi/update-JP-info-httprequest

Update info text of httprequest node
This commit is contained in:
Nick O'Leary
2019-03-07 10:02:09 +00:00
committed by GitHub
2 changed files with 12 additions and 1 deletions

View File

@@ -81,7 +81,7 @@
<h4>File Upload</h4>
<p>To perform a file upload, <code>msg.headers["content-type"]</code> should be set to <code>multipart/form-data</code>
and the <code>msg.payload</code> passed to the node must be an object with the following structure:</p>
<pre>{
<pre><code>{
"KEY": {
"value": FILE_CONTENTS,
"options": {

View File

@@ -60,5 +60,16 @@
<h4>要素タイプの扱い</h4>
<p><code>msg.payload</code><code>msg.payload</code>JSON</p>
<p>リクエストをフォームデータにエンコードするには<code>msg.headers["content-type"]</code><code>application/x-www-form-urlencoded</code></p>
<h4>ファイルのアップロード</h4>
<p><code>msg.headers["content-type"]</code><code>multipart/form-data</code><code>msg.payload</code>:</p>
<pre><code>{
"KEY": {
"value": FILE_CONTENTS,
"options": {
"filename": "FILENAME"
}
}
}</code></pre>
<p><code>KEY</code>, <code>FILE_CONTENTS</code> <code>FILENAME</code></p>
</script>