
Announcements
Hello guys,
I am trying to send a docx file via an http post request to an api. The api is rejecting the docx file. The same document sent via curl and Insomnia is accepted by the api.
In order to debug, I have tried to simplify showing the problem by narrowing down to these two calls that I have caught in requestbin.
https://public.requestbin.com/r/en1upvrnl9ik1/2USmOcTxKC1uiGH6vvyDFvG4L5i
The first one is made from the HTTP action in my flow.
The second one is made from insomnia.
As you can see there are clear differences. I am suspecting the problem to be in the content field. It seems there are a larger number of periods in the flow http one, when compared to the insomnia call. I compared the content field after removing all the periods from both calls, the contents are identical afterwards.
Why would there be these extra periods?
What can I do to eliminate this difference?
I have tried different things, but to no avail. Here are a few that i remember--
1. body('Get_file_content')
2. 'Get_file_content'
3. with or without content-type in header of content field
4. adding a mimetype header
Regards
Hi,
Give a try removing double quotes enclosing your content bytes.
If I have answered your question, please Accept the post as solution.
If you like my response, please Thumbs Up.