These are chat archives for SmingHub/Sming

21st
Mar 2018
slaff
@slaff
Mar 21 2018 13:25

I see some debug info about 88 bytes available from Sming. but request.getBody() is always empty; ( try to make POST from curl - same result...what I doing wrong??

@avr39-ripe Take a look here: SmingHub/Sming#1254

Bt default we no longer store the content into a String because if we do this there can be very easy way to crash an ESP remotely just by sending large response body. With that change we make sure that the developer realizes what he/she is doing and takes precautions.
Alexander V. Ribchansky
@avr39-ripe
Mar 21 2018 13:31
@slaff thank a lot! Already figure out this myself :) Now continue tu struggle with my app and new Sming :) so far it works almost.. last time I try you work with NEW ERA HTTP stuff my app was totally unusable, so recent Sming is huge improvement :) But we need to refactor our samples to indicate important changes in Sming and new way of doing things... for example even with mentioned "hack" request.getBody() can be called only once, second call to it will return empty string..
@slaff but Thank you personally for new http stuff! you did great job! will ping you in case of stucking :)
slaff
@slaff
Mar 21 2018 13:33
Thanks :) I usually get only complaints so I am kind of surprised ...
Alexander V. Ribchansky
@avr39-ripe
Mar 21 2018 13:39
@slaff frankly saying I do not like new http stuff.. either not like old one.. but I think after I realize the right way of using new http code I will fall in love with it ;) As always good things LACK documentation and GOOD examples :( not to complain to you!! no way! again - you did and DO great work with my beloved Sming framework.
slaff
@slaff
Mar 21 2018 13:40
;)