In integration, sometimes I will encounter a situation whereby I need to post a data to an HTTP endpoint as a query string in the URL. However, this will not work correctly if the data string is too long (there is a limit in the length of HTTP request URL). To get around this, I have to post the data as a form.
Here, I’m going to show you how you can do this in Boomi:
1. Write a custom scripting in a Data Process shape to encode the data (java.net.URLEncoder)
2. Use a message shape to construct the param and set the current data (URL encoded in Step 1) as the value
3. Set the HTTP Post Operation content type as “application/x-www-form-urlencoded”
The last thing that you will need to do is to run the process.