Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please support exporting network logs via proxyman-cli #2180

Open
ponienchen opened this issue Oct 30, 2024 · 13 comments
Open

Please support exporting network logs via proxyman-cli #2180

ponienchen opened this issue Oct 30, 2024 · 13 comments
Assignees
Labels
✅ Done Ticket is addressed and fixed. enhancement New feature or request
Milestone

Comments

@ponienchen
Copy link

Description

In one of my automation suites, I would like the ability to export the network logs via proxyman-cli in order to check something.

Why this feature/change is important?

Some of my tests are making some api calls to report user interactions with the app, and it will be helpful to be able to test the payload of those calls as part of the automation.

Please support this use case.
Thank you so very much.

@ponienchen ponienchen added the enhancement New feature or request label Oct 30, 2024
@NghiaTranUIT
Copy link
Member

@ponienchen please use this Beta build https://download.proxyman.io/beta/Proxyman_5.10.0_Support_export-log_in_the_proxyman-cli.dmg

  • Export all (ProxymanSession)
/Applications/Proxyman.app/Contents/MacOS/proxyman-cli export-log -m all -o "~/desktop/all"
Export certain domains (Only Host, no scheme, no port, no paths, and no Query)
  • Export certain domains
/Applications/Proxyman.app/Contents/MacOS/proxyman-cli export-log -m domains -o "~/desktop/twitterlog" --domains 'api.twitter.com' --domains 'www.producthunt.com

You can find the example command line at https://docs.proxyman.io/command-line#export-proxyman-log

@NghiaTranUIT NghiaTranUIT self-assigned this Nov 2, 2024
@NghiaTranUIT NghiaTranUIT added this to the 5.11.0 milestone Nov 2, 2024
@NghiaTranUIT NghiaTranUIT added the ✅ Done Ticket is addressed and fixed. label Nov 2, 2024
@ponienchen
Copy link
Author

ponienchen commented Nov 2, 2024 via email

@ponienchen
Copy link
Author

ponienchen commented Nov 4, 2024

hi, @NghiaTranUIT
I checked out the export.

The output is a binary file.
And I was wondering how I may view the contents.
Any way I can export the the network logs in json format ?

Also, is it possible to allow for specifying path ?
Or better yet, export network logs that contain certain queries ?
Like if I have
https://www.google.com/somePath?name=aaa&hobby=climbing
https://www.google.com/somePath?hobby=swimming&name=aaa

And can we be allowed to specify the query name=aaa such that it allows me to find all the network logs for
domain "www.google.com",
path "/somePath",
and query "name=aaa"
?

@NghiaTranUIT
Copy link
Member

These files can be opened by Proxyman app.

If you want to open it as a JSON: -> Rename to zip -> Unzip -> Bunch of JSON

Also, is it possible to allow for specifying path ?

Not yet, this version only works with domain and all mode

@ponienchen
Copy link
Author

ponienchen commented Nov 6, 2024

Thank you, @NghiaTranUIT
I could see the json files now.

The bodyData is encrypted for both request and response, and so I am not able to use this data.

Can we by default show encrypted bodyData, but add a flag to optionally show decrypted bodyData for both request & response ?

@NghiaTranUIT
Copy link
Member

The bodyData is encrypted for both request and response, and so I am not able to use this data.

It's not encrypted. It's encoded as a Base64 string. You should decode it to to JSON or binary data.

@ponienchen
Copy link
Author

Thanks for the info on the base64 encoding, @NghiaTranUIT
I will check it out.
Have a nice long weekend.

@ponienchen
Copy link
Author

ponienchen commented Nov 10, 2024

Hi, @NghiaTranUIT
I am able to decode the bodyData and see the data.
Thanks for letting me know that it is encoded using base64.

@ponienchen
Copy link
Author

I will play with this for a few days and if I see any issues, I will report it here.
Thanks again, @NghiaTranUIT

@ponienchen
Copy link
Author

Hi, @NghiaTranUIT

Question.
Will this ability to export network logs be available to pro version or the free version ?

@NghiaTranUIT
Copy link
Member

It's available in both versions. I will release this update on the next release 👍

@ponienchen
Copy link
Author

Thank you, @NghiaTranUIT

@ponienchen
Copy link
Author

Appreciated you working on this feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Done Ticket is addressed and fixed. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants