Pasting some curl requests in the URL field mostly fails
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
URLフィールドで使用されている cURL のインポートパスから調査を始め、再現用として提供されている Microsoft のトークンリクエストを使います。他のパラメーターはインポートされるのに、末尾のバックスラッシュによって URL の検出が妨げられる理由を確認します。貼り付けたリクエストがバックスラッシュを手動で削除しなくても URL とパラメーターをインポートでき、この例の回帰テストが追加されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 38.6k
- フォーク
- 4k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
httpie/cli のほかの issue
-
new
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug new
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
httpie/cli#1828 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
solana-foundation/pay-kit#341 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nasa/python_cmr#123 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
EleutherAI/lm-evaluation-harness#4243 ·
メンテナーはふだん 1 日以内に返信
-
area: dashboard bug perceived difficulty: 3
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Nitjsefnie-Harness-Commons/daedalus#1179 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
cusp-ai-oss/tojax#17 ·