Android Question cURL to implement Firebase Realtimedatabase transaction

Alex Guerrero

Licensed User
Hello, I am trying to update data with conditional requests in Firebase Realtimedatabase, but I do not get the unique identifier or ETag, please can you help me, thanks.

The idea is to implement a secure transaction in Firebase Realtimedatabase.

The example base code is in the following link

The curl code is the following:
curl '' -H 'X-Firebase-ETag: true'

Dim job1 As HttpJob
job1.Initialize("FiBaDb_read", Me)
job1.Download( "" )

What am I doing wrong?

The answer should be something similar to the image.


Alex Guerrero

Licensed User
Hello @Erel, the output is correct, after reading in the forum, i realized that you can not get the header with the library OkHttpUtils2,
to solve my question remove the OkHttpUtils2 library and add HttpUtils2 version 2.62 (based on OkHttp library), as you recommended in the following link.

The source code HttpUtils2

My suggestion to not have to remove the library and use the source code is that please add an option to get the header and so also avoid the message :HttpUtils2Service is declared twice.

Thank you very much.
Upvote 0