Closed TheGodMother25 closed 4 years ago
I have got a use case where I have to send zip file as a binary data (like in curl --data-binary '@input.zip') Is there a way to handle such requests?
Using the content-type and setting the data as below solves the issue; {headers: { 'Content-Type': 'application/octect-stream', 'Accept': 'text/plain,application/octect-stream,*/*' }, data: d }
{headers: { 'Content-Type': 'application/octect-stream', 'Accept': 'text/plain,application/octect-stream,*/*' }, data: d }
I have got a use case where I have to send zip file as a binary data (like in curl --data-binary '@input.zip') Is there a way to handle such requests?