Skip to Main Content

ORDS, SODA & JSON in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

X-DB-Content-length HTTP header explanation

Jacob MadsenDec 4 2018 — edited Dec 5 2018

Hi forum

It has come to our attention during our migration from mod_plsql to ORDS, that ORDS only exposes the HTTP header "Content-Length", if you're calling wpg_docload.download_file. See Doc ID 2125804.1. We have a lot client programs, both .NET applications and smartphone apps, which expect to be able to get "Content-Length" from the server, which ORDS has removed. Those applications fail against ORDS for this reason. We use Content-Length mostly for building progress bars while downloading big documents from the server.

By analyzing the HTTP headers returned by ORDS, I notice the X-DB-Content-length header instead. I have not been able to find any documentation on this header. What exactly the value it returns represents. It seems like an Oracle specific header. My question simply is: will this value be able to replace the Content-Length header?

Thanks in advance

Comments
Post Details
Added on Dec 4 2018
1 comment
580 views