Open githule opened 9 months ago
Just found a way to do this, I may give you a PR in next week if sucessful
Following up, what about comparing the input URL to the final browser URL?
This wouldn't define what the redirect method was, but will indicate a redirect occurred.
Firefox has some command line args / settings that enable logging urls. Not an easy solution but I did it that way. I have no access to my code currently. I didnt worked on report integration of theses but I will give you the command line / regex I used as soon as I can.
Hello, For information I finally used following debug feature to generate a log file and just grepped through it. firefox -MOZ_LOG=nsHttp:5 -MOZ_LOG_FILE=nsHttp.log firefox -MOZ_LOG=all:1 -MOZ_LOG_FILE=all.log
The way I run it on my side is a little far from your original code and tied to my implementation so I wont propose a PR but can share some code parts/run some tests however.
Debug feature is documented here if you need. https://firefox-source-docs.mozilla.org/networking/http/logging.html
OS Used - ALL Information (architecture, linux flavor, etc.)
Docker over debian image amd64
Pastebin link to error you are encountering
Expected behavior (vs. what you encountered)
Not an error, just an improvement
Any additional information
Hello,
It would be great to add information in the log or report of redirects followed during the web session. As far as I know I cant access this information. I can help in testing if needed.
Thank you,