Answer the question
In order to leave comments, you need to log in
How to execute this curl with axios?
There is this curl:
curl -X 'POST' 'http://127.0.0.1/?conf%3D%7B%22flag%22%3A%20%22true%22%7D' -H 'accept: application/json' -H 'Content-Type: multipart/form-data' -F '[email protected]' --output 'arch.zip'
const fd = new FormData();
fd.append('in_video', fileBuffer);
axios({
method: 'post',
url: 'http://127.0.0.1/',
params: {
conf: {"flag": "true"}
},
headers: {
'Content-Type': 'multipart/form-data'
},
data: fd,
}).then(response =>console.log(response))
.catch(error => console.log(error));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question