mightofcode / android-vpnservice-example

a android vpnservice example, use blocking io
Apache License 2.0
185 stars 59 forks source link

Access to sent and received data? #2

Open Rich2020 opened 4 years ago

Rich2020 commented 4 years ago

Hi, I really like your VPN service. I am looking to be able to see the actual HTTP request and response. I know this can be done in the main activity, where the request is made, but I want to do it through the VPN service.

As an example, say this was the URL: https://jsonplaceholder.typicode.com/todos/1

I'd like to get from the VPN service that URL as well as its response:

{
  "userId": 1,
  "id": 1,
  "title": "delectus aut autem",
  "completed": false
}

as well as the request and response headers.

Do you know how I might achieve this?

chengs2035 commented 4 years ago

Maybe you can visit this address: https://github.com/huolizhuminh/NetWorkPacketCapture

mightofcode commented 3 years ago

i dont know~