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

Pasting some curl requests in the URL field mostly fails #1587

Open
SabbirAC opened this issue Jul 11, 2024 · 0 comments
Open

Pasting some curl requests in the URL field mostly fails #1587

SabbirAC opened this issue Jul 11, 2024 · 0 comments
Labels
bug Something isn't working new Needs triage. Comments are welcome!

Comments

@SabbirAC
Copy link

I think half of the cURL examples out there whether from API documentation or whatever curl requests ChatGPT spits out have a backslash at the end of the endpoint URL

Example
curl -X POST https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token \ -d "client_id={client_id}" \ -d "scope=https://ads.microsoft.com/.default" \ -d "client_secret={client_secret}" \ -d "grant_type=client_credentials"

Whenever I copy this curl request and paste it in the URL bar in HTTPie, it will not detect the URL, but happily detects the rest of the parameters. Good thing is when I paste the cURL in the HTTPie URL field, it gives me an edit button where I can/have to remove the backslash () from the curl request and it will import nicely.

HTTPie_R8AY9T85qk

@SabbirAC SabbirAC added bug Something isn't working new Needs triage. Comments are welcome! labels Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new Needs triage. Comments are welcome!
Projects
None yet
Development

No branches or pull requests

1 participant