Tagged articles
OkHttp
54 articles · Page 1 of 1
This article analyzes OkHttp 5.5's features, concluding that Encrypted Client Hello (ECH) requires Android 17 and offers limited immediate value, while versions 5.2–5.4 deliver practical upgrades like Zstd compression, 16KB page alignment, enhanced interceptor permissions, DNS-over-HTTPS, and QUERY method support, recommending a staged upgrade starting with 5.4.
AndroidDNS-over-HTTPSECH
0 likes · 11 min read

The article explains why Spring AI Ollama requests time out after 10 seconds despite server‑side timeout settings, analyzes the independent OkHttp read timeout and other ineffective configurations, and provides a step‑by‑step solution that creates a custom OllamaApi bean with a longer OkHttp read timeout to permanently fix the issue.
ConfigurationJavaOkHttp
0 likes · 10 min read

OKHttpUtil wraps Square's OkHttp library to provide a lightweight, easy‑to‑use HTTP client for Java and Kotlin, automatically handling HTTP/HTTPS detection, cookies, redirects, gzip, proxy and User‑Agent configuration, with Maven coordinates, Spring Boot starter support and concise code examples for GET, POST, file upload, download and custom API wrappers.
API wrapperHTTP ClientJava
0 likes · 10 min read

This article introduces OKHttpUtil, a lightweight wrapper around OkHttp that lets Java developers perform HTTP GET, POST, file upload, download and Spring Boot integration with a single line of code, while offering features such as automatic HTTPS detection, cookie handling, proxy and GZIP support.
API wrapperHTTP ClientJava
0 likes · 10 min read

The article introduces OKHttpUtil, a lightweight wrapper around Square’s OkHttp library that enables Java developers to perform HTTP GET, POST, file upload, and download operations with a single line of code, includes Maven setup, Spring Boot integration, fluent API usage, and examples of wrapping external services such as eBay.
API wrapperHTTP ClientHTTP request
0 likes · 10 min read

The article explains how mobile network performance issues—especially long connection‑pool wait times—cause slow page loads in Android apps, demonstrates how to interpret Alibaba Cloud RUM’s Resource event metrics and timing data, walks through a real‑world case study with detailed stage‑by‑stage analysis, and provides concrete diagnostic steps and optimization recommendations for OkHttp connection‑pool configuration and other common bottlenecks.
AndroidOkHttpPerformance Monitoring
0 likes · 16 min read

This article explains how mobile network diversity, device fragmentation, and limited visibility make performance troubleshooting hard, then introduces Alibaba Cloud RUM's Resource event model, walks through its attribute and metric fields, demonstrates a real‑world Android case study with step‑by‑step timing analysis, and provides concrete diagnosis and optimization guidelines for connection‑pool, DNS, SSL, and TTFB issues.
AndroidOkHttpPerformance Monitoring
0 likes · 18 min read

This article details how the Vivo Game Center team tackled slow page loads and resource failures in weak‑network environments by integrating the QUIC‑enabled Cronet library into OkHttp, defining precise network states, using custom interceptors, and conducting A/B tests that reduced failure rates by 40% and cut request latency by 7%.
AndroidCronetOkHttp
0 likes · 16 min read

An Android IoT client repeatedly timed out because OkHttp reused stale TCP connections, leading to EOF and socket reset errors, and the fix was to disable the connection pool after discovering the server's keep‑alive timeout was only a few seconds.
AndroidIoTOkHttp
0 likes · 5 min read

This article introduces OKHttpUtil, a lightweight Java HTTP client wrapper, outlines its key features, provides Maven setup and code examples for GET, POST, file upload/download, demonstrates fluent HttpRequest usage, shows Spring Boot integration, and explains how to quickly encapsulate external APIs such as eBay.
API wrapperHTTP ClientOkHttp
0 likes · 9 min read

This article introduces the lightweight OKHttpUtil wrapper for Java and Kotlin, outlines its key features such as automatic protocol detection, cookie handling, proxy and header configuration, GZIP decompression, and Spring Boot integration, and provides comprehensive code examples for GET, POST, file upload, download, chained requests, and custom API client creation.
APIHTTPJava
0 likes · 10 min read

This article explains how to combine Kotlin coroutines, Flow, Retrofit, and OkHttp to create a clean, reactive, and maintainable network request framework for Android applications, covering concepts, core principles, and practical code examples.
AndroidCoroutinesFlow
0 likes · 16 min read

This article introduces four Java HTTP client libraries—Java HttpClient, Apache HttpComponents, OkHttp, and Spring WebClient—explains their key features, provides async GET and sync POST code examples for each, and offers guidance on selecting the right client for Spring Boot and plain Java projects.
Apache HttpClientHTTP ClientOkHttp
0 likes · 14 min read

This article reviews ten practical methods for invoking third-party HTTP services in Spring Boot 3.3, covering plain JDK URL, HttpClient, Apache HttpClient, OkHttp, RestTemplate, WebClient, RestClient, Http Interface, OpenFeign, and Gateway proxy, each with code samples and key advantages.
API IntegrationFeignHTTP Client
0 likes · 13 min read

This article explains why and how to replace OpenFeign with native Spring HttpInterface alternatives such as Apache HttpClient, OkHttp, and RestTemplate, covering security motivations, configuration details, code examples, and practical recommendations for microservice remote calls.
HttpClientJavaOkHttp
0 likes · 12 min read

This article introduces mica-http, a lightweight Fluent‑style HTTP client built on OkHttp, walks through dependency setup, synchronous and asynchronous usage, global logging, custom client and cookie management, presents performance benchmarks, and highlights its automatic resource handling for safe, high‑performance requests.
Fluent APIHTTPOkHttp
0 likes · 7 min read

This article introduces multiple Java approaches for sending HTTP GET and POST requests, covering the built‑in HttpURLConnection class, Apache HttpClient, Square's OkHttp, and Spring's RestTemplate, with step‑by‑step explanations and complete code examples for each method.
BackendHTTPHttpClient
0 likes · 8 min read

This article details the motivation, architecture, and step‑by‑step integration of Google’s Cronet network library into NetEase Cloud Music’s Android client, covering adaptation layers, interceptor handling, timeout support, compatibility fixes, performance gains, and future QUIC enhancements.
AndroidCronetNetwork Library
0 likes · 15 min read

This article provides a comprehensive analysis of OkHttp’s source code, explaining its request‑execution flow, layered architecture, interceptor chain design, and demonstrates how to implement custom interceptors for unified request handling in Java and Android projects.
AndroidDesignPatternHTTP
0 likes · 15 min read

This comprehensive guide walks through Gradle fundamentals—including the initialization, configuration, and execution phases—explains task creation, ordering, and incremental builds, demonstrates custom tasks and small examples, and shows three ways to build and publish Gradle plugins with ASM bytecode instrumentation for Android projects.
ASMAndroidGradle
0 likes · 16 min read

By dissecting OkHttp’s source, the article explains its layered architecture, the interceptor‑chain implementation of the Chain‑of‑Responsibility pattern, and shows how developers can add custom interceptors—such as authentication headers—to uniformly handle requests, retries, caching, and network I/O in Java and Android.
AndroidHTTPInterceptor
0 likes · 16 min read

This article introduces OKHttpUtil, a concise Java wrapper for the OkHttp library, outlines its key features, provides Maven dependency instructions, demonstrates GET, POST, file upload, download, and chained request usage, and shows how to integrate and configure it in Spring Boot as well as quickly build external API clients such as eBay.
API wrapperHTTP ClientJava
0 likes · 11 min read

This article details how an Android team unified multiple network libraries into OkHttp, integrated HttpDns to bypass carrier DNS hijacking, migrated to HTTPS and HTTP/2, and applied a series of performance and security optimizations that markedly improved request speed, reliability, and user experience across diverse mobile network conditions.
AndroidHTTPDNSHTTPS
0 likes · 22 min read

This article introduces OKHttpUtil, a lightweight wrapper for OkHttp that simplifies HTTP GET, POST, file upload/download, and chainable requests in Java, provides Maven integration, Spring Boot configuration, and demonstrates how to encapsulate external APIs such as eBay with concise code examples.
API wrapperHTTP ClientJava
0 likes · 10 min read

This article introduces AndroidMonitor, a lightweight Android packet‑capture library, explains how to add its monitor and monitor‑plugin dependencies, configure ProGuard, customize entry names, ports and logos, and optionally use AndroidLocalService to expose captured data via a local socket for both mobile and PC UI visualization.
AndroidKotlinLocal Service
0 likes · 9 min read

This article explains how to replace OpenFeign's default HTTP client with OkHttp, configure request and response interceptors, and customize OkHttpClientBuilder in Spring Cloud, providing detailed code examples and configuration steps for effective interceptor implementation.
InterceptorOkHttpOpenFeign
0 likes · 6 min read

This article explains multiple approaches for invoking third‑party HTTP APIs in Java, covering JDK HttpURLConnection, Apache HttpClient, CloseableHttpClient, SpringBoot RestTemplate, and OkHttp, with detailed code examples, configuration steps, and usage patterns for GET and POST requests.
APIHTTPHttpClient
0 likes · 27 min read

This article provides a comprehensive overview of OkHttp, covering its overall request process, the role of the dispatcher, how application and network interceptors work, TCP connection reuse via the connection pool, idle‑connection cleanup, key advantages, and the design patterns employed in the framework.
AndroidInterceptorKotlin
0 likes · 15 min read

This article explains the fundamentals of TCP/UDP and HTTP, details OkHttp's interceptor chain and caching mechanisms, and demonstrates a generic offline‑upload solution using Kotlin reflection to persist and replay network calls when connectivity is restored.
AndroidKotlinOfflineUpload
0 likes · 19 min read

The article presents a non‑intrusive Android framework that preloads page network requests in parallel with page initialization, describing its three‑part architecture, routing and network interceptors, code implementation, and performance gains that can reduce overall page load time by up to 100 ms.
Network PreloadingOkHttpRetrofit
0 likes · 12 min read

This article details the redesign of Snowball's Android network framework using OkHttp and Retrofit, covering motivations, architectural layers, solutions for domain switching, custom annotations, data validation, migration strategy, and the resulting performance and maintainability improvements.
AndroidKotlinOkHttp
0 likes · 17 min read

This article compares Apache HttpClient and OkHttp for Java backend development, explaining how to create clients, configure timeouts, perform GET/POST/PUT/DELETE requests, upload files, cancel requests, and presents performance test results with code examples for each library.
HttpClientJavaOkHttp
0 likes · 9 min read

This article details a real‑world Android file‑upload failure caused by the Android Studio Profiler’s OkHttp3Interceptor closing the request’s BufferedSink, explains the debugging steps taken, and provides code modifications to the ProgressRequestBody to prevent the IllegalStateException and ensure correct upload progress tracking.
AndroidFile UploadNetwork Interceptor
0 likes · 14 min read

The article explains how reusing HTTP connections with OkHttp—by leveraging persistent HTTP/1.1, multiplexed HTTP/2, and pre‑established sockets—dramatically cuts latency, details the underlying ConnectInterceptor and ConnectionPool implementation, and recommends enlarging the pool and adjusting keep‑alive settings to suit multi‑domain, high‑concurrency apps.
ConnectionPoolHTTP connection reuseHTTP/2
0 likes · 15 min read

Spring Cloud Square, built on Retrofit and OkHttp, offers a lightweight replacement for Spring Cloud Feign, simplifying cross-service calls with declarative clients, load‑balancing support, and easy Maven integration, and this guide walks you through setup, configuration, and advanced usage examples.
Feign alternativeJavaOkHttp
0 likes · 7 min read

This article investigates why OkHttp timeouts appear ineffective in a Retrofit‑RxJava network stack, examines the internal flow of connectTimeout, readTimeout and writeTimeout through StreamAllocation, AsyncTimeout, and the Watchdog thread, and proposes configuration adjustments to avoid request stalls.
AndroidJavaOkHttp
0 likes · 17 min read

The article explains how to implement dynamic domain name switching in mobile apps across iOS, Android, Flutter, and H5 by using a configuration center and native network interception techniques such as NSURLProtocol, OkHttp instrumentation, texture bridging, and frontend configuration to resolve regional DNS issues and enable extended features like request statistics and custom responses.
AndroidDynamic DomainFlutter
0 likes · 10 min read

This article explains how Retrofit 2.6.0 adds support for Kotlin suspend functions by detecting the Continuation parameter, determining the return type, and generating appropriate CallAdapter implementations such as SuspendForResponse and SuspendForBody to integrate coroutine handling with OkHttp.
CallAdapterCoroutinesKotlin
0 likes · 12 min read

This guide explains how to identify OutOfMemoryError crashes in Android applications caused by excessive thread‑pool creation, using tools like Android CPU Profiler, adb ps commands, and code hooks, and provides concrete steps to refactor OkHttp, RxJava, and SDK usage to prevent resource leaks.
AndroidDebuggingOOM
0 likes · 11 min read

This article introduces OkOne, a lightweight framework built on OkHttp that centralizes client management to reduce redundant instances, demonstrates step‑by‑step integration, shows performance gains through instance and connection reuse, and explores advanced features such as pre‑connect and detailed internal mechanisms.
OkHttpOkOnePreconnect
0 likes · 13 min read

This guide walks through adding Retrofit2 to an Android project, configuring network permissions, creating a singleton WebClient, defining GET and multipart POST interfaces, and handling responses to display data in a ListView and upload files to a SpringBoot backend.
AndroidGET requestOkHttp
0 likes · 9 min read

The article walks through a complete Android app update workflow where an administrator uploads an APK via a Vue front‑end to a SpringBoot service, the backend stores version data, and the Android client periodically checks for newer versions, downloads the APK using a Service and OkHttp, and installs it automatically.
AndroidApp UpdateFileProvider
0 likes · 37 min read

This article explains the mechanisms of HTTPS certificate verification in Android, outlines various implementation methods, demonstrates how to bypass verification using tools like JustTrustMe and SSLkiller, and provides detection and protection strategies for developers to safeguard their apps against such attacks.
AndroidCertificate VerificationHTTPS
0 likes · 9 min read

This article explains how to design a network framework from the ground up, explores the three‑layer understanding of frameworks, details the core components, thread scheduling, request/response processing chains, and then deep‑dives into OkHttp and Retrofit implementations, their limitations, and extensibility techniques.
InterceptorOkHttpRetrofit
0 likes · 15 min read

This article compares four Java HTTP client options—HttpURLConnection, Apache HttpComponents HttpClient, the Java 9 HttpClient, and OkHttp—detailing their features, code examples, configuration capabilities, and suitability for projects that need connection pooling, DNS control, form/JSON support, and synchronous or asynchronous calls.
Apache HttpComponentsHTTPHttpClient
0 likes · 14 min read

This article provides a systematic, hands‑on guide to DNS fundamentals—including dig queries, hierarchical lookups, Wireshark packet analysis, traditional DNS drawbacks, and HTTPDNS solutions—followed by a deep dive into WebSocket mechanics, handshake, frame structure, and security considerations, all illustrated with practical examples and code.
DNSHTTPDNSOkHttp
0 likes · 21 min read

The article explains how Baidu App adopts the Happy Eyeballs protocol—using both RFC 6555 and RFC 8305—to seamlessly transition from IPv4 to IPv6 by concurrently querying DNS, alternating address order, and employing short‑delay fallbacks in its ijkplayer, Cronet, OkHttp, and WKWebView components.
CronetHappy EyeballsIPv6
0 likes · 6 min read

This article shares practical experiences and techniques for Android app development, covering entity class organization, graceful network data handling with Retrofit, robust repository patterns, and clean UI layering using MVVM, DataBinding, and LiveData.
AndroidDataBindingEntity Design
0 likes · 8 min read

The series teaches mobile developers how to use Chrome’s Network panel and Wireshark, explains connection keep-alive, demonstrates HTTP 1.x head-of-line blocking with Go and OkHttp, and clarifies fixed-length versus chunked body transfer, providing practical code and traffic analysis for deeper protocol understanding.
Chrome NetworkGoHTTP
0 likes · 28 min read

mica-http is a Java wrapper for OkHttp that offers a fluent‑style HTTP client, showing Maven/Gradle integration, global logging configuration, synchronous and asynchronous request examples, and advanced features like header, cookie, query, form handling, and response processing with Jackson and Jsoup.
Fluent APIHTTPJava
0 likes · 6 min read

This article explains how to use ASM to instrument Android bytecode for automatic click event tracking and OkHttp network request monitoring, detailing the Transform API, AOP/ASM techniques, custom ClassVisitor and MethodVisitor implementations, code injection strategies, and provides a complete open‑source example on GitHub.
AOPASMAndroid
0 likes · 13 min read

This article details Ele.me Logistics' mobile‑app monitoring architecture—E‑Monitor, TimeBomb, Dogger, and EDW—explaining how each layer collects, visualizes, and analyzes business‑level availability data, and showcases a real‑world debugging case that leveraged the stack to resolve an HTTP/2 connectivity bug.
AndroidOkHttpbusiness availability
0 likes · 16 min read

When using Spring Cloud Config's encryption/decryption endpoints via curl, special characters such as '+' and '=' can disappear because curl's default -d option does not URL‑encode the payload, but using --data-urlencode or setting the proper Content-Type header preserves these characters and ensures correct encryption and decryption.
Config ServerJavaOkHttp
0 likes · 4 min read

This comprehensive guide walks Android developers through Retrofit’s fundamentals, usage patterns, URL configuration, parameter handling, custom converters, call adapters, and advanced techniques like file uploads, mock servers, and RxJava integration, providing code examples and deep insights to master network requests efficiently.
AndroidCustom ConverterOkHttp
0 likes · 22 min read
