Tagged articles
HTTP headers
41 articles · Page 1 of 1
The article explains that elasticsearch-py 7.14+ rejects connections to Easysearch due to a missing X-Elastic-Product: Elasticsearch response header, not a client bug, and provides a five-step troubleshooting guide: verify exception type, inspect raw headers with curl, trace header loss across proxies, check version compatibility, and only then apply temporary client patches.
EasysearchHTTP headersUnsupportedProductError
0 likes · 9 min read


liandkMay 13, 2026 · Backend Development
This tutorial walks you through installing the requests library from reliable mirrors, setting browser-like headers, extracting JSON or raw text data, handling common errors, and performing batch requests to build a quick, functional web scraper in just five minutes.
HTTP headersPythonbatch-requests
0 likes · 11 min read

This article explains why the previous custom WebMvcStreamableServerTransportProvider approach is fragile, introduces Spring AI's standard TransportContextExtractor, and provides step‑by‑step code and screenshots showing how to configure the extractor, capture ServerRequest, and read HTTP headers, URL, query parameters, and other request data in an MCP Server.
HTTP headersJavaMCP Server
0 likes · 8 min read

This article walks through common CORS errors encountered when a frontend on http://localhost:8080 calls a backend on http://localhost:59200, explains the role of the four CORS response headers, the preflight OPTIONS request, and provides step‑by‑step Nginx configurations to resolve each case.
CORSHTTP headersPreflight
0 likes · 13 min read

This article explains how Nginx forwards HTTP request headers to backend servers, details the default headers passed, shows how to customize header transmission with directives like proxy_set_header, and addresses typical issues such as missing client IP, incorrect Host headers, and security concerns.
HTTP headersWeb Serversload-balancing
0 likes · 9 min read

Learn two practical Nginx configurations to prevent browsers from caching HTML files by setting appropriate Cache-Control, Pragma, and Expires headers, with examples for both standard location blocks and conditional directives, ensuring fresh content delivery for your web applications.
BackendCache ControlHTTP headers
0 likes · 2 min read

This guide explains how Nginx implements both client‑side (strong and negotiated) caching and server‑side proxy caching, detailing HTTP headers, cache control directives, and practical configuration examples for enabling, tuning, and troubleshooting Nginx cache behavior.
CachingHTTP headersnginx
0 likes · 23 min read

This article walks through why browsers block cross‑origin requests, explains the four CORS response headers, demonstrates how to test preflight requests, and provides multiple Nginx configuration examples—including handling OPTIONS, custom headers, and method restrictions—to reliably resolve CORS issues.
HTTP headersPreflightProxy
0 likes · 13 min read

This article demonstrates how Nginx’s default behavior ignores request headers containing underscores, causing missing parameters in a Spring Boot application, and shows how to configure the 'underscores_in_headers on;' directive to correctly forward such headers, with code examples and testing via Postman.
HTTP headersSpring BootUnderscore headers
0 likes · 4 min read

This article explains how SpringBoot's @RequestHeader annotation automatically binds HTTP request headers to controller method parameters, reducing boilerplate code, supporting default values and optional headers, and improving readability and development efficiency with clear code examples.
@RequestHeaderBackendHTTP headers
0 likes · 6 min read

This article explains why stale JavaScript can break functionality, outlines the risks of caching such as outdated bugs, security flaws, and debugging difficulties, and provides practical Java‑side solutions—including versioned URLs, cache‑control headers, static‑resource policies, and ETag/Last‑Modified handling—to ensure browsers always load the latest scripts.
BackendCachingHTTP headers
0 likes · 7 min read

This article explains how to diagnose and fix common CORS problems when a front‑end site on port 8080 accesses a back‑end service on port 59200 by configuring Nginx as a proxy, detailing the required response headers, handling preflight requests, and providing complete example configurations.
CORSHTTP headersPreflight
0 likes · 13 min read

This article walks through a Python community member's problem of turning raw HTTP header strings and cookies into clean dictionary objects, explains why newline characters cause issues, and provides step‑by‑step code solutions using string replacement, JSON conversion, and built‑in libraries.
Code ExampleData ParsingHTTP headers
0 likes · 6 min read

Learn how Cross-Origin Resource Sharing (CORS) works, when it’s needed, the role of preflight requests, essential HTTP headers, and step-by-step Spring Boot solutions—including @CrossOrigin annotations, global configuration, and custom filters—to securely enable cross-domain calls in your applications.
CORSCross-OriginHTTP headers
0 likes · 11 min read

This guide walks through diagnosing common CORS failures, explains the four essential response headers, and provides step‑by‑step Nginx configurations—including handling preflight OPTIONS requests, custom headers, and method restrictions—to reliably resolve cross‑origin issues during development.
CORSCross-OriginHTTP headers
0 likes · 13 min read

Cross-Origin Resource Sharing (CORS) extends the Same-Origin Policy by permitting controlled cross‑origin requests through simple and preflight flows, using specific headers and credential rules, thereby balancing web security against threats like XSS, CSRF, and injection attacks while enabling safe resource sharing.
CORBCORSCross-Origin Requests
0 likes · 10 min read

This article explains how to overcome browser Same-Origin Policy restrictions in PHP by using a proxy server with cURL for request forwarding or by setting appropriate Access-Control-Allow-Origin response headers, including code examples and security considerations.
CORSHTTP headersPHP
0 likes · 5 min read

This guide explains how to configure Nginx to forward the original client IP using X-Real-IP or X-Forwarded-For headers and provides Java servlet code to reliably extract that IP on the backend.
BackendHTTP headersServlet
0 likes · 4 min read

This article explains the fundamentals of the browser Same‑Origin Policy, the security risks it mitigates, and how Cross‑Origin Resource Sharing (CORS) with simple and preflight requests enables controlled cross‑domain communication while protecting user data.
CORSHTTP headersPreflight Request
0 likes · 15 min read

This article walks through a common Python web‑scraping issue where missing request parameters cause failures, demonstrates how to add the necessary headers—including User‑Agent and Origin—and provides complete, runnable code snippets that retrieve the expected data from the 10086 shop API.
APIHTTP headersrequests
0 likes · 6 min read

Encountering a java.lang.IllegalArgumentException: Request header is too large? This guide explains the root cause—oversized HTTP headers—and offers two practical solutions: adjusting the server’s max‑http‑header‑size setting in Spring Boot and redesigning requests to keep header data minimal.
HTTP headersJava exceptionServer configuration
0 likes · 3 min read

Learn how to configure NGINX to force browsers to download files instead of displaying them, using Content‑Disposition headers, regex location blocks, and proper MIME handling to reduce server load and handle IE quirks.
BackendFile DownloadHTTP headers
0 likes · 4 min read

The article explains why calling PHP's session_start() multiple times generates duplicate Set-Cookie headers, provides a code-based fix using session_abort() and header_remove(), and discusses session file locking, cookie lifetime, and garbage collection settings to manage session behavior effectively.
BackendHTTP headersSession
0 likes · 3 min read


政采云技术Aug 9, 2022 · Fundamentals
HTTP Referer is a header field that indicates the source URL of the current webpage, playing a crucial role in web security, analytics, and troubleshooting, with various Referrer-Policy strategies controlling how much information is shared.
HTTP RefererHTTP headersReferrer-Policy
0 likes · 10 min read

This article explains when cross‑origin problems occur due to the browser's same‑origin policy, describes the restrictions it imposes, and provides detailed Nginx add_header configurations—including specific and global examples—to enable Access‑Control‑Allow‑Origin and Access‑Control‑Allow‑Methods headers for CORS resolution.
CORSCross-OriginHTTP headers
0 likes · 4 min read

This article explains the CORS mechanism, detailing how browsers automatically add Origin headers, the difference between simple and non‑simple requests, the preflight exchange, required HTTP headers, and how servers respond to enable or reject cross‑origin communication.
CORSCross-OriginHTTP headers
0 likes · 11 min read

This article explains the fundamentals of Cross‑Origin Resource Sharing (CORS) and the Same‑Origin Policy, illustrates common misconfigurations and attack scenarios such as origin reflection, null origin whitelisting, and TLS downgrade, and provides best‑practice mitigation techniques for secure web development.
CORSCross-Origin AttacksHTTP headers
0 likes · 20 min read

This article explains the purpose, possible values, and security impact of the Sec-Fetch request headers introduced by the Fetch Metadata specification, showing how browsers automatically add them, how servers can use them to filter illegal requests, and providing practical policy examples and code snippets.
CSRF protectionFetch MetadataHTTP headers
0 likes · 9 min read

This article comprehensively explains web caching fundamentals, HTTP cache mechanisms, strong and negotiated caching stages, cache control headers, and advanced strategies like IndexedDB, Service Workers, and CDN caching, helping front‑end developers design optimal cache policies for faster, more efficient web applications.
Browser CacheHTTP headersIndexedDB
0 likes · 15 min read

This article explains how to use Python's urllib2 library for web scraping, covering basic page fetching, proxy configuration, cookie handling, form submission, header manipulation, anti‑hotlink techniques, and advanced methods like Selenium to bypass restrictions.
HTTP headersProxyPython
0 likes · 5 min read

The article explains how the Server‑Timing HTTP header can be used to transmit arbitrary server‑side metrics to the client, shows how to send multiple timing values, demonstrates Chrome DevTools support, warns about exposing sensitive data, and introduces a small hapi plugin that simplifies adding the header.
HTTP headersPerformance MonitoringServer Timing
0 likes · 3 min read

This article explains how browsers cache resources using HTTP headers such as Last-Modified, Expires, Cache-Control and ETag, demonstrates Java Spring MVC code to set these headers, and shows how to configure Nginx for both static and proxy caching to reduce backend load and improve performance.
Browser CacheCachingHTTP headers
0 likes · 19 min read

This article explains how browsers cache resources, the role of HTTP response headers such as Last-Modified, Expires, Cache-Control, ETag, and Age, and provides practical examples of controlling cache behavior with Spring MVC code and detailed Nginx configuration for both static and proxy caching.
Cache ControlHTTP headersSpring MVC
0 likes · 21 min read

This article explains the fundamentals of browser caching, detailing how Expires and Cache‑Control headers such as max‑age, Last‑Modified, and ETag work together to reduce latency, bandwidth usage, and improve user experience, and provides step‑by‑step examples of common caching strategies in practice.
Browser CacheCache ControlETag
0 likes · 11 min read

The article examines how HTTP header and cookie parameters can serve as SQL injection vectors, evaluates the coverage of commercial and open‑source web vulnerability scanners, demonstrates manual testing techniques, and recommends tools such as sqlmap for comprehensive security assessments.
HTTP headersSQL injectionSQLMap
0 likes · 13 min read

This article explains the fundamentals of browser caching, covering strong and negotiated cache principles, HTTP header configurations such as Expires and Cache‑Control, practical code examples for managing cache in Java, and common development techniques to control or bypass caching for optimal web performance.
HTTP headersStrong CacheWeb Performance
0 likes · 16 min read


21CTOJan 26, 2016 · Frontend Development
This article explains the fundamentals of browser caching, compares strong and negotiated cache mechanisms, shows how Expires and Cache‑Control headers work, provides Java code examples for managing cache, and offers practical tips for avoiding stale resources during development.
Cache ControlHTTP headersbrowser caching
0 likes · 19 min read


21CTOAug 17, 2015 · Frontend Development
This article explains how browsers cache resources using HTTP headers like Expires, Cache‑Control, Last‑Modified, and ETag, describes non‑HTTP meta tag tricks, outlines which requests cannot be cached, and shows how different user actions affect cache behavior.
Cache ControlFrontend DevelopmentHTTP headers
0 likes · 10 min read


21CTOAug 14, 2015 · Fundamentals
This article explains how computers store and display characters using binary, defines character sets and encodings such as ASCII, GB2312, GBK, GB18030, BIG5 and Unicode, compares UTF‑8, UTF‑16, UTF‑32, and describes related HTTP headers like Accept‑Charset, Content‑Type, and Content‑Encoding.
CharsetGB18030HTTP headers
0 likes · 20 min read

This article explains how browsers cache resources, the role of HTTP response headers such as Expires, Cache‑Control, ETag and Last‑Modified, and how conditional requests and different refresh actions affect caching behavior to improve web performance.
Browser CacheCache ControlETag
0 likes · 12 min read

This article examines how web vulnerability scanners handle non‑traditional input vectors such as HTTP headers and cookies, demonstrates manual exploitation techniques for header‑based SQL injection, compares scanner coverage and accuracy, and offers practical guidance for developers and penetration testers.
HTTP headersSQL injectionSQLMap
0 likes · 14 min read
