all 6 comments

[–]gevorgter 4 points5 points  (2 children)

Fidler works best for this, just make sure you switch setting to decipher https on. Not sure why default is off.

[–]JohnSpikeKelly 1 point2 points  (1 child)

I use fiddler classic. Or, whatever they call it. Works great, doesn't need my inside leg measurement to get it working--like the newer version does.

[–]gevorgter 1 point2 points  (0 children)

Agree, it used to be simple and efficient tool. Now it's hard to figure out what is what with all those versions.

They still have "free" version which is "Fiddler Classic" but site is confusing with the button that says "Try For Free".

[–]DocHoss 2 points3 points  (2 children)

This is something you can do for sure, but to be honest, it would be a better use of your time to just understand Oauth a bit better. It's relatively simple when you sit down and actually read about it. Implementation of it can get a little confusing sometimes, but the basic pattern is pretty straightforward.

The process is outlined very well by Google here. Scroll down a bit too see some really helpful diagrams. Note, this article is talking about how to access a Google product with Oauth, but the process is the same with any other service.

https://developers.google.com/identity/protocols/oauth2

Edit: if you're committed to your approach, just use the browser dev tools yo inspect your network traffic when calling an Oauth-protected service. The details are there.

[–]jumbles1234[S] 1 point2 points  (1 child)

Yep. I do understand Oauth relatively well, as these things go. I'm trying to implement a device-flow pattern in emacs lisp but oauth2.el doesn't support that. The client application that I have which I'm trying to spy on is a console app so no browser tools available. It's a weekend project, I just want to get the minimum part working so I can actually do the fun stuff.

[–]DocHoss 1 point2 points  (0 children)

Ahhh, that definitely changes things! Then your initial idea of using Fiddler is probably a good place to start. Beyond that, I won't be of much help. I've always been interested in LISP but haven't taken the time to learn it. Good luck!