Hi,
I'm trying use HTTP request POST method to send HTML code to an API. The API requires the "x-www-form-urlencoded" body type. I'm able to adjust the headers and format the request body properly, except Flow refuses to url encode my html.
I get the following error message:
This is what my HTTP request looks like.
The 'Get_attachment_content_2' returns HTML.
Anyone know what I'm doing wrong? Is this just a bug?
When I paste my HTML into a webform url-encoder, there aren't any errors.
Solved! Go to Solution.
Yes, I tried that but the content was not being Url encoded automatically. The HTTP action seems only designed to handle application/json content type requests.
My solution was to make my own url-encoding function:
Hi @Anonymous,
Have you take a try to don't use the expression encodeUriComponent and just use the expression
body('Get_attachment_content_2') ?
Best regards,
Alice
Yes, I tried that but the content was not being Url encoded automatically. The HTTP action seems only designed to handle application/json content type requests.
My solution was to make my own url-encoding function:
User | Count |
---|---|
90 | |
44 | |
21 | |
18 | |
16 |
User | Count |
---|---|
133 | |
49 | |
42 | |
36 | |
28 |