Fading Coder

One Final Commit for the Last Sprint

Overcoming JVM Restrictions to Set the Origin Header in HTTP Requests

When integrating with a gateway that enforces HTTPS and requires the Origin header, standard HTTP client libraries may fail to set certain headers due to JVM security restrictions. The Origin and Host headers are among those restricted by default to prevent potential security vulnerabilities. A comm...

Streaming Excel Files from ASP.NET to the Client Browser

Directly transmittign an Excel workbook from an ASP.NET backend to a web client involves transforming object collections into tabular data, serializing the output to a memory buffer, and configuring the apropriate HTTP respnose headers. public void ExportCollectionAsExcel<T>(IEnumerable<T&g...

Streaming Excel-Compatible Tables in PHP Using HTTP Headers

When you don’t need a heavy library like PHPExcel/PhpSpreadsheet, you can generate a tab‑separated file (TSV) and instruct the browser to download it as an Excel‑readable worksheet using standard HTTP headers. Reusable exporter <?php /** * Stream an Excel-readable TSV file to the browser. * * @pa...