Inspect Post request payload multipart/form-data

Hello everyone,

I am trying to inspect the payload of a POST request in the browser using the Wait For Response keyword. Unfortunately the dictionary which is returned states that the postData field is None. I believe the fact that the content-type is multipart/form-data might be what is making things more difficult. Does anyone have an idea how to do this? My current code:

${promise}= Promise To Wait For Response **/api/something

Click //button[.//span[text()=“${text_button}”]]

@{output_form}= Wait For ${promise}

Log @{output_form}

${output}= functions.parse_post_request ${output_form}[request][postData]

Thanks in advance.

Enable HAR recording and you see everything that gets sent and replied back to from the server..

eg, for “New Context” keyword: https://marketsquare.github.io/robotframework-browser/Browser.html#New%20Context and see the recordHar option for examples..

1 Like