Using METHOD and --verify causes URL not to be recognized
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Tái hiện lệnh được báo cáo https GET --verify=no pie.dev/get và so sánh với đầu ra debug trong issue này. Bắt đầu từ điểm vào phân tích đối số CLI http/https, sau đó xác minh rằng METHOD, --verify và URL được chấp nhận cùng nhau. Được xem là hoàn tất khi lệnh đi đến request và không còn báo URL là đối số không được nhận dạng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Checklist
- I've searched for similar issues.
- I'm using the latest version of HTTPie.
Minimal reproduction code and steps
https GET --verify=no pie.dev/get
Current result
usage:
http [METHOD] URL [REQUEST_ITEM ...]
error:
unrecognized arguments: pie.dev/get
for more information:
run 'http --help' or visit https://httpie.io/docs/cli
Expected result
Make the request to the URL
Debug output
Please re-run the command with --debug, then copy the entire command & output and paste both below:
$ https --debug GET --verify=no pie.dev/get
HTTPie 3.2.3
Requests 2.32.3
Pygments 2.18.0
Python 3.12.4 (main, Jun 7 2024, 06:33:07) [GCC 14.1.1 20240522]
/usr/bin/python
Linux 6.6.42-1-lts
<Environment {'apply_warnings_filter': <function Environment.apply_warnings_filter at 0x7fab523e4ea0>,
'args': Namespace(),
'as_silent': <function Environment.as_silent at 0x7fab523e4d60>,
'colors': 256,
'config': {'default_options': []},
'config_dir': PosixPath('/home/kuba/.config/httpie'),
'devnull': <property object at 0x7fab523e8360>,
'is_windows': False,
'log_error': <function Environment.log_error at 0x7fab523e4e00>,
'program_name': 'https',
'quiet': 0,
'rich_console': <functools.cached_property object at 0x7fab527bb800>,
'rich_error_console': <functools.cached_property object at 0x7fab5238ff50>,
'show_displays': True,
'stderr': <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>,
'stderr_isatty': True,
'stdin': <_io.TextIOWrapper name='<stdin>' mode='r' encoding='utf-8'>,
'stdin_encoding': 'utf-8',
'stdin_isatty': True,
'stdout': <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>,
'stdout_encoding': 'utf-8',
'stdout_isatty': True}>
<PluginManager {'adapters': [],
'auth': [<class 'httpie.plugins.builtin.BasicAuthPlugin'>,
<class 'httpie.plugins.builtin.DigestAuthPlugin'>,
<class 'httpie.plugins.builtin.BearerAuthPlugin'>],
'converters': [],
'formatters': [<class 'httpie.output.formatters.headers.HeadersFormatter'>,
<class 'httpie.output.formatters.json.JSONFormatter'>,
<class 'httpie.output.formatters.xml.XMLFormatter'>,
<class 'httpie.output.formatters.colors.ColorFormatter'>]}>
usage:
http [METHOD] URL [REQUEST_ITEM ...]
error:
unrecognized arguments: pie.dev/get
for more information:
run 'http --help' or visit https://httpie.io/docs/cli
- Ngôn ngữ chính
- Python
- Star
- 38.6k
- Fork
- 4k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của httpie/cli
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
new
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
httpie/cli#1939 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
httpie/cli#1898 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug new
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
httpie/cli#1838 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
PedestrianDynamics/pyFDS-Evac#199 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
521xueweihan/HelloGitHub#3790 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
sandialabs/atlas-ui-3#978 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: tests perceived difficulty: 2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Nitjsefnie-Harness-Commons/daedalus#1255 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
hf-audiolm-qwen: `generate_until` hardcodes `.to("cuda")` and aborts on non-CUDA acceleratorsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
EleutherAI/lm-evaluation-harness#4256 ·
Maintainer thường phản hồi trong vòng 1 ngày