HTTP Connector to upload file?

I am trying to use Pipeline Pilot to submit a file in a web page form, such as the one below:


Input Excel:





Does anyone have an example of using the HTTP Connector component to submit a file in a POST action?

Thank you!
-Kip

Answers 3
LB
LB 2021-03-31

Hi Kip- Yes we do this quite often. One trick I have learned is that the Additional Options > Connection Options > Force Content-Length Calculation option can make certain services accept your upload that otherwise refuse it for unspecified reasons.

AC
AC 2021-03-31

Hi Kip. The "Components\Database and Application Integration\Utilities\Prototypes\3DSpace Document Service\Attach File to Document" component does something similar to what you're trying to do. I've attached a protocol that shows that component's way and also a variation where the form multipart message is built using PilotScript. Hopefully one of those methods will work for you.

comment imagecomment image
KS
KS 2021-03-31

Thank you!  These were very helpful!  I completely had the encoding wrong, and would never have thought to use "\r\n" line terminators.  Thank you so much!