You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sending a POST request for multi-part form in Insomnia, everything works as expected. However, when I copy as cURL command, or generate shell cURL code, I receive a command line error when running the command: curl: (26) Failed to open/read local data from file/application. After trying the same request and exporting cURL in Postman, the correct shell command is generated. It appears to be related to the XML field.
To Reproduce
Steps to reproduce the behavior:
Create multi-part form with fields as follows:
timestamp: 2021-07-14T01:02:34.567Z
field: test
data: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<test>TEST<test>
Copy to curl
Run command in shell
Expected behavior
Correct cURL is copied which is quoted/escaped in correct way
This needs to be fixed on the underlying library (httpsnippet) we use for generating curl and other requests on insomnia. I went ahead and created an issue there so we can follow up as soon as possible.
When sending a POST request for multi-part form in Insomnia, everything works as expected. However, when I copy as cURL command, or generate shell cURL code, I receive a command line error when running the command:
curl: (26) Failed to open/read local data from file/application
. After trying the same request and exporting cURL in Postman, the correct shell command is generated. It appears to be related to the XML field.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Correct cURL is copied which is quoted/escaped in correct way
Desktop
Additional context
Insomnia output:
Postman output:
The text was updated successfully, but these errors were encountered: