Libcurl procedure XFerInfo incomplete

Hi; I am using this curl.XFerInfo but it only register the upload; dlnow and ultotal are allways 0, besides ulnow allways show the same value equals to ultotal, it gets 12 times to “IF dlnow” but no changes on its value , so I can not show the progress. Please advise
[/quote]

Can you be more clear - what action (download or upload) you perform? dlnow and dltotal parameters are used for downloads only, ulnow and ultotal for uploads only, never together.

The Test project works as expected for me and shows correct progress values.

Thanks for you atention Mike, I am using this:

resultt=curl.SendRequestStr(apiurl,jsonStr,jsonResponse)

So I am sending jsonStr and receiving jsonResponse and works fine, my code inside the xFerInfo procedure is:

IF ultotal > 0 AND ulnow > 0
ProgresPorc = INT((ulnow / ultotal) * 100)
?Progress:PctText{PROP:Text}='Subiendo: ’ & progresPorc& ‘%’
?Progress:UserString{PROP:Text}=‘Subiendo solicitud..’
display
.
IF dltotal > 0 AND dlnow > 0
ProgresPorc = INT((dlnow / dltotal) * 100)
?Progress:PctText{PROP:Text}='Recibiendo: ’ & progresPorc& ‘%’
?Progress:UserString{PROP:Text}=‘Recibiendo info..’
DISPLAY
END

Where exactly is your test project? so I can take a look on it?

The project is a part of my libcurl package on github.
Pay attention that if a server does not provide Content-length response header, then dltotal/ultotal values are always 0, as per curl docs.