blackbox_exporter icon indicating copy to clipboard operation
blackbox_exporter copied to clipboard

Support multipart/form-data

Open hatamiarash7 opened this issue 2 years ago • 4 comments

Description

After this PR, we can send POST requests in multipart/form-data format. This allows users to test the upload process quickly.

http_post_body_multipart:
    prober: http
    timeout: 5s
    http:
      method: POST
      body_multipart:
        - type: "file"
          key: "file"
          value: "/files/body.txt"
        - type: "text"
          key: "name"
          value: "arash"

We can define text or file fields here.


Changes

  • Support multipart for HTTP probe
  • Update example file
  • Update configuration document
  • Add a new test for multipart form request

hatamiarash7 avatar Aug 27 '23 15:08 hatamiarash7

any update?

hatamiarash7 avatar Dec 02 '23 11:12 hatamiarash7