B4R Question Problems with rHttpUtils2 when integrating into the final project

Gerardo Tenreiro

Active Member
Licensed User
Hello Big Group,

I've been using the rHttpUtils2 module for days and I've managed to get it working in a sample program (with great help from Erel).
Now it's time to integrate it into the real project and I find that it doesn't work.
The first problem is that the "JobDone" module has to be in the main module. If I put it in the code module where everything related to the network is, I get an error.

Even so, I put all the code, the same as in the example, in the main module and make the same call that I have in the test module, the result is always "Failed to Connect",
I think the problem is that I have a code module with the WIFI and it is not in the "MAIN" module

My project is very large and I have it divided into several code modules since I reuse these modules in different projects, so I understand that it will be possible to solve the problem.

Has anyone used this module in a code module other than MAIN?

As always, any suggestion or comment will be very well received

Thank you very much
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You can use the source code instead of the library and change the two occurrences of Main in HttpJob module to whichever module you like.

Another option is to delegate the call from Main to the other module:
B4X:
Public Sub JobDone (Job As JobResult)
 OtherModule.JobDone(Job)
End Sub

The "filed to connect" is not related to the module.
 
Upvote 0

Gerardo Tenreiro

Active Member
Licensed User
Thanks Erel,

But where is the source code?

I think I saw it on the forum but I can't find it right now.

Thank you very much for your great help.
 
Upvote 0
Top