B4J Question Using fiddler to see what´s going on in b4j

kostefar

Active Member
Licensed User
Longtime User
Dear All,

First I hope this is not too off-b4-topic, but since I imagine some other b4j users got this working, I thought it´d be good to ask here.
I´ve had fiddler working well with b4a before with no issues because b4a uses the system proxy.
b4j however doesn´t, and I´ve read about how to get there.
I´ve already imported the fiddler certificate to java using keytool, and that went fine.

So at:

http://docs.telerik.com/fiddler/Configure-Fiddler/Tasks/ConfigureJavaApp

It´s saying that I should do this:

B4X:
jre -DproxySet=true -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8888

But jre is not a command - no jre.exe exists in my system. I tried using java instead of jre on a command prompt, but it just lists the help options.
Then I thought that this would do the trick, in my b4j code:

B4X:
SetSystemProperty("http.proxyHost", "127.0.0.1" )
SetSystemProperty("http.proxyPort", "8888" )

(also tried 8888 without quotation marks)

As the first thing in the AppStart sub. But still no luck, fiddler completely ignores the packages going in and out of b4j.

Any clue what I´m missing here?

Thanks in advance!
 
Last edited:

kostefar

Active Member
Licensed User
Longtime User
You can implement these instructions with:
B4X:
#VirtualMachineArgs: -DproxySet=true -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8888

Thanks Erel, but fiddler still ignores java. Any clue what I could be missing?

Fixed it! Had to ammend previous code to:

B4X:
SetSystemProperty("https.proxyHost", "127.0.0.1" )
SetSystemProperty("https.proxyPort", "8888" )

I did not tell you that this is https data, so you wouldn´t have known.
 
Last edited:
Upvote 0
Top