Skip to content

fix: improve curl transform accuracy#9647

Draft
jackkav wants to merge 11 commits intoKong:developfrom
jackkav:fix/improve-curl-transformation-accuracy
Draft

fix: improve curl transform accuracy#9647
jackkav wants to merge 11 commits intoKong:developfrom
jackkav:fix/improve-curl-transformation-accuracy

Conversation

@jackkav
Copy link
Contributor

@jackkav jackkav commented Feb 9, 2026

todo

  • ensure errors are visible for live validate, import modal and clipboard
  • fix url-encoded form input
  • replace old logic with curlconverter
  • work on a parser which converts accurately back to existing request objects
  • ensure inso cli can play nice with the wasm modules included in the browser version

Previous implementation coud handle a few cases curlconverter cannot and will result in an error

--d (single-dash long flag) │ curlconverter throws on --d (not valid curl), returns null                                                    --data-raw '@filename' │ curlconverter doesn't distinguish --data-raw from -d, treats @ as file ref (missing value) 
--data-urlencode 'key@filename' │ curlconverter resolves to key=@filename string instead of preserving file semantics 
--data-urlencode ' ' │ curlconverter URL-encodes space as +, our converter decodes but gets + not                                    -d 'key=value' (no Content-Type header) │ curlconverter auto-adds Content-Type: application/x-www-form-urlencoded, so it becomes params instead of text 

closes INS-1531

@jackkav jackkav mentioned this pull request Feb 11, 2026
3 tasks
@jackkav jackkav force-pushed the fix/improve-curl-transformation-accuracy branch from cca4365 to 61be74e Compare February 16, 2026 08:43
@jackkav jackkav force-pushed the fix/improve-curl-transformation-accuracy branch from 61be74e to 5495dda Compare February 16, 2026 08:46
@jackkav jackkav force-pushed the fix/improve-curl-transformation-accuracy branch from 074a8be to 2a74d1b Compare February 16, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant