Home > Enterprise >  Is there a way to send files in body using OWASP ZAP?
Is there a way to send files in body using OWASP ZAP?

Time:10-02

In order to test something like, file upload (Content-Type: multipart/form-data), is there functionality in OWASP ZAP to send a file in a request body?

I've tried copy pasting the contents of the file but that didn't work out of the box. Using curl's flag -F '[email protected]', did work, but I'd like to get it working in ZAP.

Help much appreciated!

EDIT:

Also the error I'm getting when copy-pasting the contents of a file is:

{
  "error": {
    "detail": "Multipart form parse error - Invalid boundary in multipart: None"
  }
}

CodePudding user response:

ZAP doesnt have any specific option to make it easy for you, but if you craft it right then it will work. To see what the request should look like proxy the curl request through ZAP.

  • Related