Unable to obtain port

Open
#457 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
58/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
c, cli
Domain
cli

Research direction

The bug is that --get '{port}' prints nothing for an https URL with no explicit port, although the example expects 443. The payload names no source files, so start by reproducing with trurl --url https://curl.se/we/are.html --get '{port}' and find where the port component is read and where a default port would be filled in. Done means the command prints 443 for this URL, and an explicit port in the URL still prints unchanged.

Written by the indexing model from the issue text.

Description

--get '{port}' returns no value, rather than returning 443 as shown in the example.

└──❯ trurl --url https://curl.se/we/are.html --get '{port}'

└──❯ trurl -v
trurl version 0.16.1 libcurl/8.23.0 [built-with 8.23.0]
features: get-empty imap-options no-guess-scheme normalize-ipv4 url-strerror white-space zone-id
Dominant language
Perl
Stars
3.4k
Forks
119
Avg merge
1d 8h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from curl/trurl

All issues in curl/trurl

Similar issues

More Perl issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.