httpx icon indicating copy to clipboard operation
httpx copied to clipboard

-follow-redirects should not print location

Open nadirzb opened this issue 1 year ago • 1 comments

httpx version: v1.6.9

Current Behavior:

Option -fr or -follow-redirects should not print location, -location already does it.

Expected Behavior:

Option -fr or -follow-redirects should only follow redirect, not print anything.

Steps To Reproduce:

echo "redirecteddomain.com" | httpx -fr

Anything else:

nadirzb avatar Dec 20 '24 05:12 nadirzb

$ echo https://resources.hackerone.com | httpx -silent -sc -fr
https://resources.hackerone.com [301,301,404] [http://resources.hackerone.com/read/account_titles/2763037]

Currently redirected URL is printed when -fr option is used, expected behavior would be print redirected location only when -location option is used.

ehsandeep avatar May 09 '25 09:05 ehsandeep

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!

github-actions[bot] avatar Aug 31 '25 00:08 github-actions[bot]

This issue has been automatically closed due to inactivity. If you think this is a mistake or would like to continue the discussion, please comment or feel free to reopen it.

github-actions[bot] avatar Sep 14 '25 00:09 github-actions[bot]

this is fixed!

ehsandeep avatar Sep 14 '25 11:09 ehsandeep