You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With -debug and -follow-redirects, we see the timeout trying to reach the redirect.
C:\home\kali> httpx -debug -follow-redirects -u https://localhost -debug-resp
__ __ __ _ __
/ /_ / /_/ /_____ | |/ /
/ __ \/ __/ __/ __ \| /
/ / / / /_/ /_/ /_/ / |
/_/ /_/\__/\__/ .___/_/|_|
/_/
projectdiscovery.io
[INF] Current httpx version v1.6.9 (latest)
[WRN] UI Dashboard is disabled, Use -dashboard option to enable
[INF] Dumped HTTP request for https://localhost
GET / HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Accept-Charset: utf-8
Accept-Encoding: gzip
[DBG] Failed 'https://localhost': Get "http://localhost": errKind=network-permanent-error [address=localhost:80] port closed or filtered; connection refused
Intended behavior
I'd like httpx with -json -follow-redirects -include-chain -include-response (or other reasonable combinations) to output the 301 and somehow indicate failure following the direct. Otherwise, I have to run httpx with and without -follow-redirects to capture this information.
I don't know what's best for "somehow indicate failure". There isn't a status code to capture; perhaps "000" or some other designated value makes sense.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If httpx is run with
-follow-redirects
, no data is returned if the redirect is inaccessible at a network level.Example
Without
-follow-redirects
, we see the 301.With
-follow-redirects
, we don't see anything returned.With
-debug
and-follow-redirects
, we see the timeout trying to reach the redirect.Intended behavior
I'd like
httpx
with-json -follow-redirects -include-chain -include-response
(or other reasonable combinations) to output the 301 and somehow indicate failure following the direct. Otherwise, I have to runhttpx
with and without-follow-redirects
to capture this information.I don't know what's best for "somehow indicate failure". There isn't a status code to capture; perhaps "000" or some other designated value makes sense.
Beta Was this translation helpful? Give feedback.
All reactions