HTTP Request POST (body)

Post Reply
User avatar
magnussandstrom
Member
Posts: 123
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden

HTTP Request POST (body)

Post by magnussandstrom » Wed Jan 19, 2022 9:39 pm

Hi, I am bulding a flow where I want to send a Pitstop Preflight report as a HTTP POST with the HTTP Request element. I have been asked by our dev-guy to supply the report (as json or XML) in the "body" of the POST.

In my Switch flow the preflight report (as XML) is 'triggering' the HTTP Request element, but I can't figure out how to include the preflight report as 'body' in the POST.

Or maybe I can use the 'Attatched file' but I don't understand how I could select the 'incoming' XML-file?

Any suggestions?

ps. As you might understand from my question, I am not very good at API:s (yet) ;)
prepress_geek

freddyp
Advanced member
Posts: 726
Joined: Thu Feb 09, 2012 3:53 pm

Re: HTTP Request POST (body)

Post by freddyp » Thu Jan 20, 2022 8:09 am

If it is the XML file that triggers the HTTP request, then it is:
Request type - POST
Attached file - [Job.Path]
Use MIME encoding - No

User avatar
magnussandstrom
Member
Posts: 123
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden

Re: HTTP Request POST (body)

Post by magnussandstrom » Thu Jan 20, 2022 9:17 am

Thanks Freddy, that worked!
prepress_geek

Post Reply