<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Hello, has anyone managed to send a file with the HTTP request plugin? If yes, c</title><link>https://community.appian.com/discussions/f/plug-ins/2512/hello-has-anyone-managed-to-send-a-file-with-the-http-request-plugin-if-yes-c</link><description>Hello, has anyone managed to send a file with the HTTP request plugin? If yes, could you explain how to set the parameters? Thank you.... OriginalPostID-106410 OriginalPostID-106410</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Hello, has anyone managed to send a file with the HTTP request plugin? If yes, c</title><link>https://community.appian.com/thread/8828?ContentTypeID=1</link><pubDate>Fri, 11 Apr 2014 16:58:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ee32ff14-f71b-45a6-b899-86cff91d65bd</guid><dc:creator>fabienb</dc:creator><description>Definitively. Thanks for your support. &lt;br /&gt;&lt;br /&gt;Here is an update of the message with the correct encoding type: &lt;br /&gt;=concat(&amp;quot;--AaB03x&amp;quot;,char(13)&amp;amp;char(10),&amp;quot;Content-Disposition: form-data;name=&amp;quot;&amp;quot;file&amp;quot;&amp;quot;;filename=&amp;quot;&amp;quot;tesfab&amp;quot;&amp;quot;&amp;quot;,char(13)&amp;amp;char(10),&amp;quot;Content-Type: application/octet-stream&amp;quot;,char(13)&amp;amp;char(10),&amp;quot;Content-Transfer-Encoding: base64&amp;quot;,char(13)&amp;amp;char(10)&amp;amp;char(13)&amp;amp;char(10),convertdocumenttobase64(pv!Document),char(13)&amp;amp;char(10),&amp;quot;--AaB03x--&amp;quot;,char(13)&amp;amp;char(10))&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello, has anyone managed to send a file with the HTTP request plugin? If yes, c</title><link>https://community.appian.com/thread/8825?ContentTypeID=1</link><pubDate>Fri, 11 Apr 2014 16:41:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:23661d56-3299-4018-8afd-157395959c29</guid><dc:creator>Stefan Helzle</dc:creator><description>Great news :-) This is really good to know.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello, has anyone managed to send a file with the HTTP request plugin? If yes, c</title><link>https://community.appian.com/thread/8823?ContentTypeID=1</link><pubDate>Fri, 11 Apr 2014 14:21:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3961ba8a-75b6-498a-aa03-07bf83da5f13</guid><dc:creator>fabienb</dc:creator><description>Done! Here is the final body message: &lt;br /&gt;=concat(&amp;quot;--AaB03x&amp;quot;,char(13)&amp;amp;char(10),&amp;quot;Content-Disposition: form-data;name=&amp;quot;&amp;quot;file&amp;quot;&amp;quot;;filename=&amp;quot;&amp;quot;testfab&amp;quot;&amp;quot;&amp;quot;,char(13)&amp;amp;char(10),&amp;quot;Content-Type: application/octet-stream&amp;quot;,char(13)&amp;amp;char(10)&amp;amp;char(13)&amp;amp;char(10),convertdocumenttobase64(pv!Document),char(13)&amp;amp;char(10),&amp;quot;--AaB03x--&amp;quot;,char(13)&amp;amp;char(10))&lt;br /&gt;Best regards&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello, has anyone managed to send a file with the HTTP request plugin? If yes, c</title><link>https://community.appian.com/thread/8822?ContentTypeID=1</link><pubDate>Fri, 11 Apr 2014 13:58:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f1d51b50-1976-4059-9e52-379857dae43f</guid><dc:creator>fabienb</dc:creator><description>I mean {&amp;quot;code&amp;quot;:&amp;quot;BadRequestError&amp;quot;,&amp;quot;message&amp;quot;:&amp;quot;MultipartParser.end(): stream ended unexpectedly: state = PART_DATA&amp;quot;}&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello, has anyone managed to send a file with the HTTP request plugin? If yes, c</title><link>https://community.appian.com/thread/8821?ContentTypeID=1</link><pubDate>Fri, 11 Apr 2014 13:57:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a29deab0-9b9c-43ca-9c81-a0f52056a57a</guid><dc:creator>fabienb</dc:creator><description>Small win. char(13)&amp;amp;char(10) should be used to build the body. The new error message is =concat(&amp;quot;--AaB03x&amp;quot;,char(13)&amp;amp;char(10),&amp;quot;Content-Disposition: form-data;name=&amp;quot;&amp;quot;file&amp;quot;&amp;quot;;filename=&amp;quot;&amp;quot;aps.js&amp;quot;&amp;quot;&amp;quot;,char(13)&amp;amp;char(10),&amp;quot;Content-Type: application/octet-stream&amp;quot;,char(13)&amp;amp;char(10),&amp;quot;test&amp;quot;,char(13)&amp;amp;char(10),&amp;quot;--AaB03x--&amp;quot;)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello, has anyone managed to send a file with the HTTP request plugin? If yes, c</title><link>https://community.appian.com/thread/8818?ContentTypeID=1</link><pubDate>Fri, 11 Apr 2014 13:22:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f066dde3-c357-48d6-ba6d-8b9426542cc2</guid><dc:creator>fabienb</dc:creator><description>Hello Stefan, thank you for your help really. I am getting closer. I got a new error message: {&amp;quot;code&amp;quot;:&amp;quot;BadRequestError&amp;quot;,&amp;quot;message&amp;quot;:&amp;quot;parser error, 9 of 114 bytes parsed&amp;quot;}. &lt;br /&gt;My body is built as follows: &lt;br /&gt;=concat(&amp;quot;--AaB03x&amp;quot;,char(13),&amp;quot;Content-disposition: form-data;name=&amp;quot;&amp;quot;file&amp;quot;&amp;quot;;filename=&amp;quot;&amp;quot;aps.js&amp;quot;&amp;quot;&amp;quot;,char(13),&amp;quot;Content-type: application/octet-stream&amp;quot;,char(13),&amp;quot;test&amp;quot;,char(13),&amp;quot;--AaB03x--&amp;quot;)&lt;br /&gt;The problem is about the char(13). Do you have any idea?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello, has anyone managed to send a file with the HTTP request plugin? If yes, c</title><link>https://community.appian.com/thread/8799?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2014 21:19:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e3f99f93-3ca6-4c86-af33-02bc46c388aa</guid><dc:creator>Stefan Helzle</dc:creator><description>Yes. That is how I would start. Do you have success with that? I recently had to adapt to a Deutsche Telekom SMS service that also included some hand crafted HTTP requests. It was not easy but after some trial an error it is working very good now.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello, has anyone managed to send a file with the HTTP request plugin? If yes, c</title><link>https://community.appian.com/thread/8796?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2014 19:10:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:721c5942-fb55-41b2-983c-e2c92814d975</guid><dc:creator>fabienb</dc:creator><description>Stefan, just to make sure, could you confirm for me that I should build the body with CONCAT and CHAR(13) like in : &lt;br /&gt;=concat(&amp;quot;----WebKitFormBoundaryePkpFF7tjBAqx29L&amp;quot;,char(13),&amp;quot;Content-disposition: form-data;file=&amp;quot;&amp;quot;file1&amp;quot;&amp;quot;&amp;quot;,char(13),&amp;quot;Content-type: text/plain&amp;quot;,char(10),convertdocumenttobase64(pv!Document),char(13),&amp;quot;----WebKitFormBoundaryePkpFF7tjBAqx29L&amp;quot;). &lt;br /&gt;Thank you&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello, has anyone managed to send a file with the HTTP request plugin? If yes, c</title><link>https://community.appian.com/thread/8790?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2014 18:28:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:929a29da-232f-4da3-989b-15e3482aa5ab</guid><dc:creator>fabienb</dc:creator><description>I did not see your message, I will try to build something like the example.&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello, has anyone managed to send a file with the HTTP request plugin? If yes, c</title><link>https://community.appian.com/thread/8789?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2014 18:20:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2d7fe296-c0c8-4c12-b7c7-de3abfb40f73</guid><dc:creator>fabienb</dc:creator><description>Stefan, I am now using a new header ={&amp;quot;token  TOKEN&amp;quot;,&amp;quot;multipart/form-data; boundary=--------&amp;quot;} with a new body: =concat(&amp;quot;--------&amp;quot;&amp;quot;,convertdocumenttobase64(pv!Document),&amp;quot;--------&amp;quot;). The error message is now:&lt;br /&gt;{&amp;quot;code&amp;quot;:&amp;quot;BadRequestError&amp;quot;,&amp;quot;message&amp;quot;:&amp;quot;MultipartParser.end(): stream ended unexpectedly: state = START_BOUNDARY&amp;quot;} Do you have any thought? (sorry for bothering you like this)&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello, has anyone managed to send a file with the HTTP request plugin? If yes, c</title><link>https://community.appian.com/thread/8786?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2014 18:02:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cc004ae0-60ca-41ea-9a66-b0d862130b83</guid><dc:creator>Stefan Helzle</dc:creator><description>You have to post something like this&lt;br /&gt;&lt;br /&gt;POST /upload?upload_progress_id=12344 HTTP/1.1&lt;br /&gt;Host: localhost:3000&lt;br /&gt;Content-Length: 1325&lt;br /&gt;Origin: &lt;a href="http://localhost:3000"&gt;http://localhost:3000&lt;/a&gt;&lt;br /&gt;Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryePkpFF7tjBAqx29L&lt;br /&gt;&amp;lt;other headers&amp;gt;&lt;br /&gt;&lt;br /&gt;------WebKitFormBoundaryePkpFF7tjBAqx29L&lt;br /&gt;Content-Disposition: form-data; name=&amp;quot;MAX_FILE_SIZE&amp;quot;&lt;br /&gt;&lt;br /&gt;100000&lt;br /&gt;------WebKitFormBoundaryePkpFF7tjBAqx29L&lt;br /&gt;Content-Disposition: form-data; name=&amp;quot;uploadedfile&amp;quot;; filename=&amp;quot;hello.o&amp;quot;&lt;br /&gt;Content-Type: application/x-object&lt;br /&gt;&lt;br /&gt;&amp;lt;file data&amp;gt;&lt;br /&gt;------WebKitFormBoundaryePkpFF7tjBAqx29L--&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello, has anyone managed to send a file with the HTTP request plugin? If yes, c</title><link>https://community.appian.com/thread/8785?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2014 17:57:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b49b47df-07ed-451b-8a87-e8185451c5c3</guid><dc:creator>fabienb</dc:creator><description>I tried to use multipart/form-data content type with convertdocumenttobase64(pv!Document) as Body input but I received the following message: {&amp;quot;code&amp;quot;:&amp;quot;BadRequestError&amp;quot;,&amp;quot;message&amp;quot;:&amp;quot;bad content-type header, no multipart boundary&amp;quot;}&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello, has anyone managed to send a file with the HTTP request plugin? If yes, c</title><link>https://community.appian.com/thread/8784?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2014 17:53:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:74f80021-e3d8-482c-b2ed-7c8866eddcbe</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;a href="http://stackoverflow.com/questions/8659808/how-does-http-file-upload-work"&gt;stackoverflow.com/.../how-does-http-file-upload-work&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This should help you. curl -F means that the data has to be sent as multipart/form-data.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello, has anyone managed to send a file with the HTTP request plugin? If yes, c</title><link>https://community.appian.com/thread/8783?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2014 17:40:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4f7faa36-a794-4e4a-8c77-3b24a86e200e</guid><dc:creator>fabienb</dc:creator><description>Hi Stefanh, thanks for helping. The only specification I have is the curl function: $ curl -XPOST \\&lt;br /&gt;-H &amp;quot;Authorization: token ${TOKEN}&amp;quot; \\&lt;br /&gt;-F &amp;quot;file=@sample.txt&amp;quot; \\&lt;br /&gt;&lt;a&gt;api.xxxx.com/.../file&lt;/a&gt;&lt;br /&gt;I have tried to encode 64 the file and pass it in the &amp;quot;body&amp;quot; input. How can I know what content type and encoding header I should set?&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello, has anyone managed to send a file with the HTTP request plugin? If yes, c</title><link>https://community.appian.com/thread/8782?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2014 17:35:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2fab59fa-7687-4d0b-994e-2ed436317035</guid><dc:creator>Stefan Helzle</dc:creator><description>That is quite easy. You encode the file to base64 and do a POST to the other server. Some headers have to be set, content-type and encoding at least. What kind of receiving server to you have? The exact procedure depends on this.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>