Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dk-handle_data_raw #16

Merged
merged 3 commits into from
Nov 28, 2024
Merged

dk-handle_data_raw #16

merged 3 commits into from
Nov 28, 2024

Conversation

dkuku
Copy link
Contributor

@dkuku dkuku commented Nov 27, 2024

Hey @derekkraan
I often copy curl requests from the browser.
In my case the data is always under the key data-raw which does the same as --data but does not support @ which is reading from file or stdin which is not supported currently in curl_req so I think all should be handled identical.

From the docs:

--data-ascii
(HTTP) This option is just an alias for -d, --data.

--data-raw
(HTTP) Post data similarly to -d, --data but without the special interpretation of the @ character.

Another thing I spotted that some requests have dollar sign in the beginning - this is handled by the shell and has to be stripped

@derekkraan derekkraan merged commit 02f5b49 into derekkraan:main Nov 28, 2024
6 checks passed
@derekkraan
Copy link
Owner

Thanks for the PR! Will do a release so people can start using this right away.

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.

2 participants