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

Curl parsing for additional flags #4661

Open
johnsicili opened this issue Dec 27, 2024 · 0 comments · May be fixed by #4750
Open

Curl parsing for additional flags #4661

johnsicili opened this issue Dec 27, 2024 · 0 comments · May be fixed by #4750
Assignees
Labels
area:cms All CMS related issues prio:2 Always look for prio:1 issues first before working on prio:2 type:feat Features and enhancements

Comments

@johnsicili
Copy link
Contributor

I'm playing with the Stripe API and pasted in the following curl commands into Resource URL and they don't get parsed.

curl -G https://api.stripe.com/v1/products/search \
  -u "mytestkey:" \
  --data-urlencode query="active:'true' AND metadata['order_id']:'6735'"
curl -G https://api.stripe.com/v1/products \
  -u "mytestkey:" \
  -d limit=3
@johnsicili johnsicili added type:feat Features and enhancements prio:2 Always look for prio:1 issues first before working on prio:2 area:cms All CMS related issues labels Dec 27, 2024
TrySound added a commit that referenced this issue Jan 16, 2025
Fixes #4661

- support -G to enforce get method and treat data as search params
- post data has application/x-www-form-urlencoded content type by
  default
- -u flag allows basic http authentication
- support more data flags like --data-ascii, --data-raw,
  --data-urlencode
@TrySound TrySound linked a pull request Jan 16, 2025 that will close this issue
TrySound added a commit that referenced this issue Jan 16, 2025
Fixes #4661

- support -G to enforce get method and treat data as search params
- post data has application/x-www-form-urlencoded content type by
  default
- -u flag allows basic http authentication
- support more data flags like --data-ascii, --data-raw,
  --data-urlencode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:cms All CMS related issues prio:2 Always look for prio:1 issues first before working on prio:2 type:feat Features and enhancements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants