Repository navigation
Description
httpx version:
v1.6.9 (Windows amd64)
Current Behavior:
When running httpx with -favicon flag against https://211.148.131.226:10443/, the command completes without showing favicon information, though the website has a visible favicon in browsers.
Command used:
httpx.exe -u https://211.148.131.226:10443/ -fr -sc -faviconActual output:
https://211.148.131.226:10443/ [302,200] [https://211.148.131.226:10443/global-protect/login.esp] []
Expected Behavior:
Output should either:
Include favicon hash (e.g. [favicon:-631559155]) when found
Steps To Reproduce:
Run: httpx.exe -u https://211.148.131.226:10443/ -fr -sc -favicon
Observe missing favicon information
Verify favicon exists via browser
After debugging, it was found that the correct path for extracting ICO was/portal/images/favicon.ico. However, due to, the correct ICO path is https://211.148.131.226:10443/global-protect/portal/images/favicon.ico And deployment is not https://211.148.131.226:10443/portal/images/favicon.ico
Activity
oxqnd commentedon Jul 19, 2025
Hi, is anyone currently working on this? If not, I’d like to take a shot at fixing it.
ehsandeep commentedon Jul 19, 2025
@oxqnd feel free to pick this up!
oxqnd commentedon Jul 20, 2025
@ehsandeep Hi, I’ve been looking further into this issue.
In the HTML, the favicon is referenced as a relative path like , but the actual favicon is located at /global-protect/portal/images/favicon.ico, so the current path resolution fails.
I think there are two possible approaches to fix this:
Personally, I think option 2 would be more flexible across different environments, but I’d love to hear your thoughts on this.
Is there a preferred direction for handling this?
ehsandeep commentedon Jul 20, 2025
@oxqnd we should definitely avoid hardcoding anything, as it’s application-specific and each app will have different paths. We should focus on dynamic ways to determine the correct path.