René's URL Explorer Experiment


Title: Unable to reflect response in android app using appium and Java · Issue #17 · appium/mitmproxy-java · GitHub

Open Graph Title: Unable to reflect response in android app using appium and Java · Issue #17 · appium/mitmproxy-java

X Title: Unable to reflect response in android app using appium and Java · Issue #17 · appium/mitmproxy-java

Description: I am using below configuration. Installed MITM certificate on my emulator. Installed MITM proxy, websocket and other related dependecy as mentioned in appiumPro article Part of code dealing with proxy is as per below ` List messages = ne...

Open Graph Description: I am using below configuration. Installed MITM certificate on my emulator. Installed MITM proxy, websocket and other related dependecy as mentioned in appiumPro article Part of code dealing with pr...

X Description: I am using below configuration. Installed MITM certificate on my emulator. Installed MITM proxy, websocket and other related dependecy as mentioned in appiumPro article Part of code dealing with pr...

Opengraph URL: https://github.com/appium/mitmproxy-java/issues/17

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unable to reflect response in android app using appium and Java","articleBody":"I am using below configuration. \r\n1. Installed MITM certificate on my emulator.\r\n2. Installed MITM proxy, websocket and other related dependecy as mentioned in appiumPro [article](https://appiumpro.com/editions/65-capturing-network-traffic-in-java-with-appium)\r\n\r\nPart of code dealing with proxy is as per below\r\n      `\r\n      List\u003cInterceptedMessage\u003e messages = new ArrayList\u003c\u003e();\r\n\r\n        // remember to set local OS proxy settings in the Network Preferences\r\n        proxy = new MitmproxyJava(\"C:\\\\Python311\\\\Scripts\\\\mitmdump.exe\", (InterceptedMessage m) -\u003e {\r\n            if(\r\n\r\n                    m.getRequest().getUrl().toString().toLowerCase().startsWith(apiURL.toLowerCase()) \u0026\u0026\r\n                    m.getRequest().getMethod().equalsIgnoreCase(\"post\")\u0026\u0026\r\n                    getJsonObject(new String(m.getRequest().getBody())).hasNonNull(\"operationName\")\u0026\u0026\r\n                    getJsonObject(new String(m.getRequest().getBody())).get(\"operationName\").asText().equalsIgnoreCase(\"getPharamcyTATInfo\")\r\n            )\r\n            {\r\n\r\n                    JsonNode responseBodyJson = getJsonObject(new String(m.getResponse().getBody()));\r\n                    String modifiedResp = updateValuesInJson(responseBodyJson.toString(),\r\n                            \"data.getSkuInfo.tatInfo.tatResponse.inventoryExist\",false,\r\n                            \"data.getSkuInfo.tatInfo.tatResponse.items[0].exist\",false);\r\n                    m.getResponse().setBody(modifiedResp.getBytes(StandardCharsets.UTF_8));\r\n                    m.getResponse().getHeaders().add(new String[]{\"My Test Resp Header\",\"Header Value\"});\r\n                    messages.add(m);\r\n            }\r\n            return m;\r\n        });\r\n        proxy.start();\r\n\r\n        login(initializeDriver(testMethod),credentialManager);\r\n`\r\n\r\nnow I have printed the intercepted message and modified response. but the app is still receiving the unmodified request. \r\nwhen I do below\r\n`\r\nmessages.forEach(\r\n                x-\u003e{\r\n                    LOGGER.info(\"########Request Operation : \"+x.toString() +getJsonObject(new String(x.getRequest().getBody())).get(\"operationName\"));\r\n                    LOGGER.info(\"########### Response Body :\" +new String(x.getResponse().getBody()));\r\n                }\r\n\r\n        );`\r\ni see the proper response (modified one), this response never made it app, it is still showing the normal behaviour.\r\n\r\nP.S. the app is Android native app\r\nPlease advice","author":{"url":"https://github.com/ashuaviator1987","@type":"Person","name":"ashuaviator1987"},"datePublished":"2023-02-14T16:44:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/17/mitmproxy-java/issues/17"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:dd07243b-29ac-5018-c2a7-a7983d3e3b21
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD158:31B4C:2015752:2945ED3:697D77E5
html-safe-nonceb7a94c24eaa9cfd32eb2e72c6b66c522b0f762c7df580294cf41506f1ad1623a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTU4OjMxQjRDOjIwMTU3NTI6Mjk0NUVEMzo2OTdENzdFNSIsInZpc2l0b3JfaWQiOiI4MTc1NTIzNTY2MTc4NDQ3MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac446ec6f8bc7aba49b6c60c8fb3c8cf39d5636322887f2483efc6c2d31da8ffa2
hovercard-subject-tagissue:1584492749
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/appium/mitmproxy-java/17/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4582213481068709a80fa5ee251ea33316a8a6b356d22b46e6d19d75ad50d70b/appium/mitmproxy-java/issues/17
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4582213481068709a80fa5ee251ea33316a8a6b356d22b46e6d19d75ad50d70b/appium/mitmproxy-java/issues/17
og:image:altI am using below configuration. Installed MITM certificate on my emulator. Installed MITM proxy, websocket and other related dependecy as mentioned in appiumPro article Part of code dealing with pr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameashuaviator1987
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
go-importgithub.com/appium/mitmproxy-java git https://github.com/appium/mitmproxy-java.git
octolytics-dimension-user_id3221291
octolytics-dimension-user_loginappium
octolytics-dimension-repository_id181068418
octolytics-dimension-repository_nwoappium/mitmproxy-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id181068418
octolytics-dimension-repository_network_root_nwoappium/mitmproxy-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7c85641c598ad130c74f7bcc27f58575cac69551
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/appium/mitmproxy-java/issues/17#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fappium%2Fmitmproxy-java%2Fissues%2F17
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fappium%2Fmitmproxy-java%2Fissues%2F17
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=appium%2Fmitmproxy-java
Reloadhttps://patch-diff.githubusercontent.com/appium/mitmproxy-java/issues/17
Reloadhttps://patch-diff.githubusercontent.com/appium/mitmproxy-java/issues/17
Reloadhttps://patch-diff.githubusercontent.com/appium/mitmproxy-java/issues/17
appium https://patch-diff.githubusercontent.com/appium
mitmproxy-javahttps://patch-diff.githubusercontent.com/appium/mitmproxy-java
Please reload this pagehttps://patch-diff.githubusercontent.com/appium/mitmproxy-java/issues/17
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fappium%2Fmitmproxy-java
Fork 20 https://patch-diff.githubusercontent.com/login?return_to=%2Fappium%2Fmitmproxy-java
Star 66 https://patch-diff.githubusercontent.com/login?return_to=%2Fappium%2Fmitmproxy-java
Code https://patch-diff.githubusercontent.com/appium/mitmproxy-java
Issues 10 https://patch-diff.githubusercontent.com/appium/mitmproxy-java/issues
Pull requests 1 https://patch-diff.githubusercontent.com/appium/mitmproxy-java/pulls
Actions https://patch-diff.githubusercontent.com/appium/mitmproxy-java/actions
Projects 0 https://patch-diff.githubusercontent.com/appium/mitmproxy-java/projects
Security 0 https://patch-diff.githubusercontent.com/appium/mitmproxy-java/security
Insights https://patch-diff.githubusercontent.com/appium/mitmproxy-java/pulse
Code https://patch-diff.githubusercontent.com/appium/mitmproxy-java
Issues https://patch-diff.githubusercontent.com/appium/mitmproxy-java/issues
Pull requests https://patch-diff.githubusercontent.com/appium/mitmproxy-java/pulls
Actions https://patch-diff.githubusercontent.com/appium/mitmproxy-java/actions
Projects https://patch-diff.githubusercontent.com/appium/mitmproxy-java/projects
Security https://patch-diff.githubusercontent.com/appium/mitmproxy-java/security
Insights https://patch-diff.githubusercontent.com/appium/mitmproxy-java/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/appium/mitmproxy-java/issues/17
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/appium/mitmproxy-java/issues/17
Unable to reflect response in android app using appium and Javahttps://patch-diff.githubusercontent.com/appium/mitmproxy-java/issues/17#top
https://github.com/ashuaviator1987
https://github.com/ashuaviator1987
ashuaviator1987https://github.com/ashuaviator1987
on Feb 14, 2023https://github.com/appium/mitmproxy-java/issues/17#issue-1584492749
articlehttps://appiumpro.com/editions/65-capturing-network-traffic-in-java-with-appium
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.