gargl
gargl copied to clipboard
can not record some post requests when click on certain buttons
Hi Joe,
I am a big fan of Gargl. Now I have a problem, when I click on some certain buttons, I can get post requests of XHR from network tab, but I cannot get these records from Gargl. The website uses a lot of ajax. Could you please release a new version or give me some idea about how to make a complete record on all these XHR?
Thank you so much!
Hi, What page are you doing this from, and what URLs are not showing up in Gargl?
I had this issue messing around with Trivia Crack just recently. The POST request it issues to assign a card to a slot seems to get completely ignored by the chrome devtools.
The URL is https://api.preguntados.com/api/users/@user-id@/gacha-slots/@slot-id@/cards
This could be because the POST request has a payload of "{id: @card-id@}". I don't think any of the other POST requests have a payload and they all seem to get tracked by gargl just fine.
Err, sorry, let me clarify. The POST request shows up in the network view in the chrome devtools, but for some reason the request is not being passed to gargl's chrome.devtools.network.onRequestFinished
listener.
"completely ignored by the chrome devtools" probably wasn't the correct choice of words.
Weird. Just looked into this a bit. It does seem like Chrome is not firing the handler passed to chrome.devtools.network.onRequestFinished
as you said, specifically for cross origin POST requests. Regular POST requests, and cross origin GET requests, seem to show up fine. But for cross origin POST requests, only the OPTIONS request before the POST shows up.
I don't think its related to the POST request body, because the POST requests to https://apps.facebook.com/ajax/bz on the same page show up fine in Gargl, and they have a body. But they are not cross-origin, which is why I think the issue is related to that.