Skip to content

[Bug] Multipart generated code miss pieces of the payload #994

@rgarrigue

Description

@rgarrigue
  • Insomnia Version: ___
  • Operating System: Win 7

Details

I've a multipart with two fields, username and password. It works in Insomnia.

image

Whenever I generate the code for any language, I've the following (here in python requests)

import requests

url = "http://192.168.60.10/api/index.php"

payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"username\"\r\n\r\nadmin"
headers = {'content-type': 'multipart/form-data; boundary=---011000010111000001101001'}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

The payload is missing its data past the first one. I've tried a bit with more data, changing data name just in case, swapping order between username and password : only the first data is in the generated code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleBot: Stale Issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions