What we see here is 3 different POST request to the same url. The network traffic was captured using the program Fiddler, and here we see what Fiddler labels as the “Raw sent data”.
The Postman software sends it out correctly and i receive the expected result back.
UiPath and the Http Request Activity does not however. I always get back an error 415 “Wrong file type”. I noticed that for SOME reason, the Content-Type is set as an application/octet-stream every time!
Even if i edit the Body Property of the Activity, so it contains “Content-Type: application/pdf”, it seems like UiPath will take the file attachment and overwrite my Content-Type command.
Which Property should i edit, and how, to ensure that Content-Type will remain “application/pdf”?
I am using the activity: UiPath.Web.Activities.HttpClient