In many cases in my day-to-day, I need to compare two [or more] HTTP get requests in order to understand why one's work and the other not or why I'm getting different responses. It's usually large requests with a lot of query params. I found many tools like this one http-get-requests-compare.com but I prefer to write my own snippet and then console.table the results in my Devtool.
I know that the order of the query params has no meaning, I tried to compare two requests using JS but I couldn't figure out how to write the algorithm.
my starting point:
const requestA = r1.split('&');
const requestB = r2.split('&);
Aucun commentaire:
Enregistrer un commentaire