Tag

httpurlconnection

0 views collected around this technical thread.

Java Architect Essentials
Java Architect Essentials
Nov 28, 2023 · Backend Development

Various Ways to Send HTTP Requests in Java

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
Various Ways to Send HTTP Requests in Java
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 1, 2023 · Backend Development

Why Spring Boot’s connectionTimeout Doesn’t Affect Request Time – Experiments Explained

This article experiments with Spring Boot’s Tomcat connectionTimeout setting using controller delays, HttpURLConnection requests, and raw socket connections, demonstrating that the timeout only applies when a client stays idle after connecting, not to request processing time or client type.

BackendJavaSocket
0 likes · 5 min read
Why Spring Boot’s connectionTimeout Doesn’t Affect Request Time – Experiments Explained
IT Services Circle
IT Services Circle
Apr 10, 2022 · Backend Development

How to Perform HTTP Requests in Java Using HttpURLConnection

This article demonstrates how to implement HTTP requests in Java using the built-in HttpURLConnection class, covering request creation, adding parameters, setting headers, handling timeouts, cookies, redirects, and reading responses, including error handling, with complete code examples.

BackendHTTPJava
0 likes · 8 min read
How to Perform HTTP Requests in Java Using HttpURLConnection