Skip to content

Conversation

@ShashwatXD
Copy link

PR Description

This PR adds support for automatically parsing a curl command when it is pasted
into the URL field, similar to Postman.

When a curl command is detected on paste:

  • The curl is parsed using the existing CurlIO parser
  • Request method, URL, headers, query parameters, body, and form data are populated automatically
  • The URL field is updated to show only the parsed URL

This behavior is limited to REST API requests and does not affect normal typing
or existing URL field functionality.

Related Issues

Checklist

  • I have gone through the contributing guide
  • I have updated my branch and synced it with project main branch before making this PR
  • I am using the latest Flutter stable branch (run flutter upgrade and verify)
  • I have run the tests (flutter test) and all tests are passing

Added/updated tests?

We encourage you to add relevant test cases.

  • Yes
  • No, and this is why:

Added tests in test/providers/collection_providers_test.dart for the httpRequestModel parameter in update() method:

  • Complete HttpRequestModel update
  • Field preservation when updating
  • Form data handling

All tests pass successfully.

OS on which you have developed and tested the feature?

  • Windows
  • macOS
  • Linux
Screen.Recording.2025-12-16.at.14.16.48.mov

@animator animator linked an issue Dec 16, 2025 that may be closed by this pull request
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.

Auto-parse curl command when pasted into URL field

1 participant