CURL to HTTP Request


I have a CURL post code which I want to implement using a HTTP Request Activity.

This is the CURL POST:

curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' --header 'Authorization: Token cbde78e69f19a9b44cc1df0220aa40b1' -F -F left.file_type=docx -F -F right.file_type=docx -F public=false  ''

I added headers
Authorization: Token cbde78e69f19a9b44cc1df0220aa40b1
Accept: application/json
Content-Type: multipart/form-data

And the rest as Parameters, but it doesn’t work.
In the preview it says:

CSRF verification failed. Request aborted.

You are seeing this message because this HTTPS site requires a 'Referer header' to be sent by your Web browser, but none was sent. This header is required for security reasons, to ensure that your browser is not being hijacked by third parties.

If you have configured your browser to disable 'Referer' headers, please re-enable them, at least for this site, or for HTTPS connections, or for 'same-origin' requests.

If you are using the <meta name="referrer" content="no-referrer"> tag or including the 'Referrer-Policy: no-referrer' header, please remove them. The CSRF protection requires the 'Referer' header to do strict referer checking. If you're concerned about privacy, use alternatives like <a rel="noreferrer" ...> for links to third-party sites.

After I save it, when I execute the program I have the following error:

{"left":["This field is required."],"right":["This field is required."]}

Any solutions? Don’t really know what Refferrer to add in the header.

Hi @Robert_K

For the first part, please check the reference shown below