Question

Skillstorm
Skillstorm
US
Skillstorm
Posted: Jan 17, 2025
Last activity: Jan 22, 2025
Last activity: 22 Jan 2025 21:02 EST
multipart/form-data service responds with the wrong attachment type
I have a service in pega which responds with multipart/form-data content. In my activity I have an example set up where it should send a simple text file.
Then I run the command
wget --user <<myusername>> --password <<mypassword>> <<enpointURL>>/events
And a new file called "events" is created and inside it has
--z8pxifJXtO3KqznAW_UPYELrk820ilJXa58MyE
Content-Disposition: form-data; name="events"; filename="events"
Content-Type: application/octet-stream; charset=ISO-8859-1
Content-Transfer-Encoding: binary
Here are some events
--z8pxifJXtO3KqznAW_UPYELrk820ilJXa58MyE--
How can i make it just download the events.txt file instead of this event file that is of type application/octet-stream?