Quantcast
Channel: ThingSpeak IoT Community - Forum: ThingSpeak Apps
Viewing all articles
Browse latest Browse all 223

garfieldpai on Using ThingHTTP to forward POST Request with file and string

$
0
0

Hi All,

   How can I forward the following HTTP POST Request using ThingHTTP?

<span class="pln">POST </span><span class="pun">/</span><span class="pln"> HTTP</span><span class="pun">/</span><span class="lit">1.1</span> <span class="typ">Host</span><span class="pun">:</span><span class="pln"> localhost</span><span class="pun">:</span><span class="lit">8000</span> <span class="com">request_method=POST Content-Type: multipart/form-data; boundary=---------------------------9051914041544843365972754266 Content-Length: 554 -----------------------------9051914041544843365972754266 Content-Disposition: form-data; name="text" text default -----------------------------9051914041544843365972754266 Content-Disposition: form-data; name="file1"; filename="a.txt" Content-Type: text/plain Content of a.txt. -----------------------------9051914041544843365972754266 Content-Disposition: form-data; name="file2"; filename="a.html" Content-Type: text/html &lt;!DOCTYPE html&gt;&lt;title&gt;Content of a.html.&lt;/title&gt; -----------------------------9051914041544843365972754266--</span>

Viewing all articles
Browse latest Browse all 223

Trending Articles