Will OB2 automatic generate and send Content-Length in header even when we don’t write it in headers?
was OB1 same?
yes it will automatically generate it and im not completely sure but in ob2 i think if you write smaller content length in header than your actual length it wont even finish the request properly so never copy paste the content length header in your requests
Y, that is a question too, when we copy paste the content length, sometimes it is higher and sometimes lower, what will happen when we do that is OB2 and OB1
i think in ob1 it still works maybe it gets overwritten from the calculated one but im not sure just dont copy paste that
you can also check that in the debugger it will be in the requested headers on both versions
In OB1 the Content-Length header you set is disregarded, and one is always automatically generated according to the length of your content. In OB2 you can manually set a Content-Length header and override the automatically generated one (it’s useful on some badly configured sites).