Android Question Capture decrypted SSL from webview?

kostefar

Active Member
Licensed User
Longtime User
Dear All,

I am trying to build an app around a website that requires my login name and password, and automate click/posting behavour.

I was wondering if there´s a way to extract SSL encrypted traffic made from a webview to/from a server, similarly to getting the innerhtml?

I suppose not; at the moment I´m using fiddler to see the decrypted packets, and while having some luck with using httputils2 to reconstruct what´s going on, I´ve run into some issues with that.
I then figured that if I could do the login in a normal button-click mimicking way, then if I could get the tokens and hidden cookie, given for each session inside the SSL part, I´ll be able to mimic everything on a packet level.

Mimicking all clicks is the least prefered method, and even there I´ve run into issues when there are multiple items in a grid, which seem not to have a unique name.
 

kostefar

Active Member
Licensed User
Longtime User
Thanks Erel,

Using okhttputils is a totally different thing than httputils2 - so far this seems to be doing what I need! Not sure if I´m gonna need it, but one thing that seems to be missing from it is GetRequest.SetHeader. Any other way of doing that with okhttputils?
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
but how do I set the header with Okhttputils2
In httputils you needed to add the http library for this.
In okhttputils you need to add okhttp library for this.
 
Upvote 0
Top